Address

Address storage, that can hold either an IPv4 or IPv6 address.

Constructors

this
this()
Undocumented in source.
this
this(Address4 address)

Initializes the addres with an IPv4 address.

this
this(Address6 address)

Initializes the addres with an IPv4 address.

Members

Functions

isAny
bool isAny()

Determines whether this is an unspecified address.

isLoopback
bool isLoopback()

Determines whether this is a loopback address.

isMulticast
bool isMulticast()

Determines whether this address' destination is a group of endpoints.

isV4
bool isV4()

Determines whether this is an IPv4 address.

isV6
bool isV6()

Determines whether this is an IPv6 address.

opAssign
Address opAssign(T that)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(T that)

Compares two addresses for equality.

toV4
inout(Address4) toV4()

Get the address as an IPv4 address.

toV6
inout(Address6) toV6()

Get the address as an IPv6 address.

Meta