InetSocketAddress
class in package klyn.net

    public class InetSocketAddress extends SocketAddress:

Object
└ SocketAddress
└ InetSocketAddress

Internet socket endpoint (host + port).

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | hostString `hostString as String:` | Host part used to connect/bind.
public readonly property | port `port as Int:` | Port part.

Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | InetSocketAddress `InetSocketAddress(host as String, port as Int):` | Creates an internet socket address from host and port.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | fromAddress `fromAddress(address as InetAddress, port as Int) as InetSocketAddress:` | Creates an internet socket address from `InetAddress` and port.
public | getAddress `getAddress() as InetAddress:` | Returns the address part.
public | isUnresolved `isUnresolved() as Boolean:` | True when this endpoint has no explicit host.
public override | toString `toString() as String:` | Endpoint representation as `host:port`.

Methods inherited from Object: fromJson, toDict, toJson, toString, toXml