InetSocketAddress

expect class InetSocketAddress(hostname: String, port: Int) : SocketAddress
actual class InetSocketAddress(hostname: String, port: Int) : SocketAddress
actual data class InetSocketAddress(hostname: String, port: Int) : SocketAddress

Functions

Link copied to clipboard
expect operator fun component1(): String

The hostname of the socket address.

actual operator fun component1(): String
Link copied to clipboard
expect operator fun component2(): Int

The port number of the socket address.

actual operator fun component2(): Int
Link copied to clipboard
expect fun copy(hostname: String = this.hostname, port: Int = this.port): InetSocketAddress

Create a copy of InetSocketAddress.

actual fun copy(hostname: String = this.hostname, port: Int = this.port): InetSocketAddress
Link copied to clipboard
expect open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
expect open override fun hashCode(): Int
actual open override fun hashCode(): Int
Link copied to clipboard
expect open override fun toString(): String
actual open override fun toString(): String

Properties

Link copied to clipboard
expect val hostname: String

The hostname of the socket address.

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

The port number of the socket address.

actual val port: Int
actual val port: Int