InetSocketAddress

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

Constructors

Link copied to clipboard
expect constructor(hostname: String, port: Int)
actual constructor(hostname: String, port: Int)
actual constructor(hostname: String, port: Int)

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

Functions

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

The hostname of the socket address.

actual operator fun component1(): String
actual operator fun component1(): String

The hostname of the socket address.

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

The port number of the socket address.

actual operator fun component2(): Int
actual operator fun component2(): Int

The port number of the socket address.

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, port: Int): InetSocketAddress

Create a copy of InetSocketAddress.

actual fun copy(hostname: String, port: Int): InetSocketAddress

Create a copy of InetSocketAddress.

Link copied to clipboard
expect open operator override fun equals(other: Any?): Boolean
actual 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
actual open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
expect open override fun toString(): String
actual open override fun toString(): String
actual open override fun toString(): String