Package io.ktor.util.network

Types

Link copied to clipboard
expect abstract class NetworkAddress

Represents remote endpoint with hostname and port.

actual abstract class NetworkAddress

Represents remote endpoint with hostname and port.

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

Represents remote endpoint with hostname and port.

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
Link copied to clipboard
fun ResolvedNetworkAddress(hostname: String, port: Int, explicitAddress: Any?): 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