copy

expect fun copy(hostname: String = this.hostname, port: Int = this.port): InetSocketAddress

Create a copy of InetSocketAddress.

Note that this may trigger a name service reverse lookup.

actual fun copy(hostname: String, port: Int): InetSocketAddress