Extensions for java.net.SocketAddress

hostname

expect val NetworkAddress.hostname: String

Network address hostname.

port

expect val NetworkAddress.port: Int

Network address port.