public class InetSocketAddress extends SocketAddress:
Internet socket endpoint (host + port).
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | hostStringhostString as String: |
Host part used to connect/bind. |
| public readonly property | portport as Int: |
Port part. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | InetSocketAddressInetSocketAddress(host as String, port as Int): |
Creates an internet socket address from host and port. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | fromAddressfromAddress(address as InetAddress, port as Int) as InetSocketAddress: |
Creates an internet socket address from `InetAddress` and port. |
| public | getAddressgetAddress() as InetAddress: |
Returns the address part. |
| public | isUnresolvedisUnresolved() as Boolean: |
True when this endpoint has no explicit host. |
| public override | toStringtoString() as String: |
Endpoint representation as `host:port`. |