The type of a reference to an element pointed to by the iterator.
typedef const address_v4 & reference;
Name |
Description |
---|---|
The type used to represent an address as an array of bytes. |
Name |
Description |
---|---|
Default constructor. Construct an address from raw bytes. Construct an address from an unsigned long in host byte order. Copy constructor. |
|
Obtain an address object that represents any address. |
|
Obtain an address object that represents the broadcast address. Obtain an address object that represents the broadcast address that corresponds to the specified address and netmask. |
|
(Deprecated: Use make_address_v4().) Create an address from an IP address string in dotted decimal form. |
|
Determine whether the address is a class A address. |
|
Determine whether the address is a class B address. |
|
Determine whether the address is a class C address. |
|
Determine whether the address is a loopback address. |
|
Determine whether the address is a multicast address. |
|
Determine whether the address is unspecified. |
|
Obtain an address object that represents the loopback address. |
|
Obtain the netmask that corresponds to the address, based on its address class. |
|
Assign from another address. |
|
Get the address in bytes, in network byte order. |
|
Get the address as a string in dotted decimal format. |
|
Get the address as an unsigned long in host byte order. |
Name |
Description |
---|---|
Compare two addresses for inequality. |
|
Compare addresses for ordering. |
|
Compare addresses for ordering. |
|
Compare two addresses for equality. |
|
Compare addresses for ordering. |
|
Compare addresses for ordering. |
Name |
Description |
---|---|
Create an IPv4 address from raw bytes in network order. Create an IPv4 address from an unsigned long in host byte order. Create an IPv4 address from an IP address string in dotted decimal form. Create an IPv4 address from a IPv4-mapped IPv6 address. |
|
Create an IPv4 network from an address and prefix length. Create an IPv4 network from an address and netmask. |
|
Output an address as a string. Output a network as a string. |
The ip::address_v4
class provides the ability to use and manipulate IP version 4 addresses.
Distinct objects: Safe.
Shared objects: Unsafe.
Header: asio/ip/address_iterator_v4.hpp
Convenience header: asio.hpp