InetSocketAddress
classin packageklyn.net
public class InetSocketAddress extends 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.
Inherited Properties
propertyInherited Properties 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 the endpoint's hostname cannot be resolved.
public override toString
toString() as String
Endpoint representation as host:port.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml