NetworkAddress

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

Represents remote endpoint with hostname and port.

The address will be resolved after construction.

Throws

if the hostname cannot be resolved.

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

Represents remote endpoint with hostname and port.

The address will be resolved after construction.

Throws

if the hostname cannot be resolved.

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