Address4

IPv4 internet address.

Constructors

this
this(uint address)

Constructs an $(D_PSYMBOL Address4) from an unsigned integer in host byte order.

Members

Functions

isAny
bool isAny()

0.0.0.0 can represent any address. This function checks whether this address is 0.0.0.0.

isBroadcast
bool isBroadcast()

Broadcast address is 255.255.255.255.

isLoopback
bool isLoopback()

Loopback address is 127.0.0.1.

isMulticast
bool isMulticast()

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

isUnicast
bool isUnicast()

Determines whether this address' destination is a single endpoint.

opCmp
int opCmp(Address4 that)

Compares two Address4 objects.

toBytes
ubyte[4] toBytes()

Produces a byte array containing this address in network byte order.

toString
OR toString(OR output)

Writes this IPv4 address in dotted-decimal notation.

toUInt
uint toUInt()

Converts this address to an unsigned integer in host byte order.

Properties

any
Address4 any [@property getter]

Returns object that represents 0.0.0.0.

loopback
Address4 loopback [@property getter]

Returns object that represents 127.0.0.1.

Variables

step
enum byte step;
Undocumented in source.
step
enum byte step;
Undocumented in source.

Meta