class IpAddress
source · line 26public
public class IpAddress private constructor(internal val native: NativeSocketAddress) : Equals<
IpAddress
>, Hash, ToString
- Supertype
Equals<IpAddress> - Supertype
Hash - Supertype
ToString
An immutable numeric IP address with family and optional IPv6 scope identifier. Parsing does not perform DNS resolution.
function toString
source · line 97public
public override fun toString(): String
- Overrides
toString
Returns numeric address notation without performing name resolution.
property scopeId
source · line 40public
public val scopeId: UInt
get: public read-only
The IPv6 scope identifier, or zero when no scope is selected.
getter get
source · line 40public
get(): UInt
function hash
source · line 84public
public override fun hash(): Long
- Overrides
hash
Hashes the same address identity used by equality.
property family
source · line 32public
public val family: AddressFamily
get: public read-only
The address's IPv4 or IPv6 family.
getter get
source · line 32public
get(): AddressFamily
function toByteArray
source · line 45public
public fun toByteArray(): Array<Byte>
Copies the four or sixteen address bytes in network order.
function equals
source · line 67public
public override operator fun equals(other: IpAddress): Boolean
- Overrides
equals
Compares the complete normalized address identity, including its relevant family, scope, prefix, or port.
parameter other
source · line 67public
other: IpAddress