NetworkAddress

expect abstract class NetworkAddress

Represents remote endpoint with hostname and port.

The address will be resolved after construction.

actual abstract class NetworkAddress

Represents remote endpoint with hostname and port.

The address will be resolved after construction.

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

Represents remote endpoint with hostname and port.

The address will be resolved after construction.

Throws

Constructors

Link copied to clipboard
fun NetworkAddress(hostname: String, port: Int, explicitAddress: Any? = null)

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