NetworkAddress

expect class NetworkAddress

Represents remote endpoint with hostname and port.

The address will be resolved after construction.

actual class NetworkAddress

Represents remote endpoint with hostname and port.

The address will be resolved after construction.

actual typealias NetworkAddress = SocketAddress
actual class NetworkAddress(hostname: String, port: Int, explicitAddress: Any?)

Throws

Functions

Link copied to clipboard
open override fun toString(): String

Resolve current socket address.

Properties

Link copied to clipboard
var explicitAddress: AtomicRef<Any?>
Link copied to clipboard
val hostname: String
Link copied to clipboard
val port: Int

Extensions

Link copied to clipboard
expect val NetworkAddress.hostname: String

Network address hostname.

actual val NetworkAddress.hostname: String

Network address hostname.

actual val NetworkAddress.hostname: String
Link copied to clipboard
expect val NetworkAddress.port: Int

Network address port.

actual val NetworkAddress.port: Int

Network address port.

actual val NetworkAddress.port: Int