Struct Address4
IPv4 internet address.
Constructors
Name | Description |
this
(address)
|
Constructs an Address4 from an unsigned integer in host
byte order.
|
Properties
Name | Type | Description |
any [get]
|
Address4 | Returns object that represents 0.0.0.0.
|
loopback [get]
|
Address4 | Returns object that represents 127.0.0.1.
|
Methods
Name | Description |
isAny
()
|
0.0.0.0 can represent any address. This function checks whether this
address is 0.0.0.0.
|
isBroadcast
()
|
Broadcast address is 255.255.255.255.
|
isLoopback
()
|
Loopback address is 127.0.0.1.
|
isMulticast
()
|
Determines whether this address' destination is a group of endpoints.
|
isUnicast
()
|
Determines whether this address' destination is a single endpoint.
|
opCmp
(that)
|
Compares two Address4 objects.
|
stringify
()
|
Produces a string containing an IPv4 address in dotted-decimal notation.
|
toBytes
()
|
Produces a byte array containing this address in network byte order.
|
toString
(output)
|
Writes this IPv4 address in dotted-decimal notation.
|
toUInt
()
|
Converts this address to an unsigned integer in host byte order.
|