IPSocketAddress

class IPSocketAddress(val address: IPAddress, val port: Port) : Address(source)

Holder for a inet socket address' parts

e.g.

"127.0.0.1:8080".toIPSocketAddress()
"[::1]:8080".toIPSocketAddress()
IPSocketAddress(IPAddress.V4.AnyHost, 8080.toPort())

See also

Constructors

Link copied to clipboard
constructor(address: IPAddress, port: Port)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@JvmField
val address: IPAddress
Link copied to clipboard
@JvmField
val port: Port
Link copied to clipboard
@JvmField
val value: String

Functions

Link copied to clipboard
fun canonicalHostName(): String

Returns value in its canonicalized hostname form

Link copied to clipboard
operator override fun compareTo(other: Address): Int
Link copied to clipboard
operator fun component1(): IPAddress
Link copied to clipboard
operator fun component2(): Port
Link copied to clipboard
fun copy(address: IPAddress, port: Port): IPSocketAddress