InetSocketAddress
classin packageklyn.net
public class InetSocketAddress extends SocketAddress:
└ InetSocketAddress
Internet socket endpoint (host + port), close to Java's `java.net.InetSocketAddress`.
Properties
| Modifier and Type |
Member |
Description |
| public readonly property |
hostString |
Host part used to connect/bind. |
| public readonly property |
port |
Port part. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
InetSocketAddress |
Creates an internet socket address from host and port. |
Methods
| Modifier and Type |
Member |
Description |
| public static |
fromAddress |
Creates an internet socket address from `InetAddress` and port. |
| public |
getAddress |
Returns the address part. |
| public |
isUnresolved |
True when this endpoint has no explicit host. |
| public override |
toString |
Endpoint representation as `host:port`. |