NetworkAddress

expect fun NetworkAddress(
    hostname: String,
    port: Int
): NetworkAddress

Represents remote endpoint with hostname and port.

The address will be resolved after construction.

Exceptions

UnresolvedAddressException - if the hostname cannot be resolved.