V6

open class V6 : IPAddress(source)

Holder for an IPv6 address

NOTE: No resolution of device network interfaces are performed for a non-null scope.

See toInet6Address See toIPAddressV6

Parameters

scope

The network interface name or index number, or null if no scope was expressed.

See also

Inheritors

Types

Link copied to clipboard
open class AnyHost : IPAddress.V6

Holder for ::0

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@JvmField
val scope: String?
Link copied to clipboard
@JvmField
val value: String

Functions

Link copied to clipboard
fun address(): ByteArray

Returns the raw bytes for this IPAddress in network byte order. Will either be 4 or 16 bytes in length (V4 or V6 respectively).

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
@JvmName(name = "inet6AddressOf")
fun IPAddress.V6.toInet6Address(): Inet6Address
Link copied to clipboard
@JvmName(name = "inetAddressOf")
fun IPAddress.toInetAddress(): InetAddress
Link copied to clipboard
@JvmStatic
@JvmName(name = "unmapFrom")
fun IPAddress.unmappingFrom(): AddressMapping

Creates a AddressMapping that instruct tor to unmap any addresses associated with the provided IPAddress.