data class NetworkHostAndPort
Tuple of host and port. Use NetworkHostAndPort.parse on untrusted data.
host
- a hostname or IP address. IPv6 addresses must not be enclosed in square brackets.
NetworkHostAndPort(host: String, port: Int)
Tuple of host and port. Use NetworkHostAndPort.parse on untrusted data. |
val host: String
a hostname or IP address. IPv6 addresses must not be enclosed in square brackets. |
|
val port: Int
a valid port number. |
fun toString(): String |
fun parse(str: String): NetworkHostAndPort
Parses a string of the form host:port into a NetworkHostAndPort. The host part may be a hostname or IP address. If it's an IPv6 address, it must be enclosed in square brackets. Note this does not parse the toString of a resolved java.net.InetSocketAddress, which is of a host/IP:port form. |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |