IPv6

An IPv6 address

Constructors

this
this(in6_addr ia)
this(ubyte[ADDR_LEN] bytes)
this(string dottedString)

Construct an IPv6 address

Members

Functions

opAssign
auto ref opAssign(in6_addr ia)
auto ref opAssign(ubyte[16] bytes)
auto ref opAssign(string dottedString)

Assignment

toString
string toString()

Return a GC allocated string for the address (colon notation)

Manifest constants

ADDR_LEN
enum ADDR_LEN;

Length of an IPv6 address

any
enum any;

"Any" address (for local binding)

loopback
enum loopback;

Loopback address

Properties

isLinkLocal
bool isLinkLocal [@property getter]

Returns true if this is a link local address

isLoopback
bool isLoopback [@property getter]

Returns true if this is the loopback address

isMulticast
bool isMulticast [@property getter]

Returns true if this is a multicast address

isSiteLocal
bool isSiteLocal [@property getter]

Returns true if this is a site local address

isUnspecified
bool isUnspecified [@property getter]

Returns true if this is the unspecified address

isV4Compat
bool isV4Compat [@property getter]

Returns true if this address is in the IPv4 range

isV4Mapped
bool isV4Mapped [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta