Package io.ktor.util.network

Types

Link copied to clipboard
expect class NetworkAddress

Represents remote endpoint with hostname and port.

actual class NetworkAddress

Represents remote endpoint with hostname and port.

actual typealias NetworkAddress = SocketAddress
actual class NetworkAddress(hostname: String, port: Int, explicitAddress: Any?)
Link copied to clipboard
expect class UnresolvedAddressException : IllegalArgumentException
actual class UnresolvedAddressException : IllegalArgumentException
actual typealias UnresolvedAddressException = UnresolvedAddressException
actual class UnresolvedAddressException

Functions

Link copied to clipboard
expect fun NetworkAddress(hostname: String, port: Int): NetworkAddress

Represents remote endpoint with hostname and port.

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

Represents remote endpoint with hostname and port.

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

Properties

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