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.
<init> |
Tuple of host and port. Use NetworkHostAndPort.parse on untrusted data. NetworkHostAndPort(host: String, port: Int) |
host |
a hostname or IP address. IPv6 addresses must not be enclosed in square brackets. val host: String |
port |
a valid port number. val port: Int |
toString |
fun toString(): String |
parse |
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 parse(str: String): NetworkHostAndPort |