...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
The type of the elements pointed to by the iterator.
typedef address_v4 value_type;
Name |
Description |
---|---|
The type used to represent an address as an array of bytes. |
|
The type used to represent an address as an unsigned integer. |
Name |
Description |
---|---|
Default constructor. Construct an address from raw bytes. Construct an address from an unsigned integer in host byte order. Copy constructor. |
|
Obtain an address object that represents any address. |
|
Obtain an address object that represents the broadcast address. (Deprecated: Use network_v4 class.) 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. |
|
(Deprecated: Use network_v4 class.) Determine whether the address is a class A address. |
|
(Deprecated: Use network_v4 class.) Determine whether the address is a class B address. |
|
(Deprecated: Use network_v4 class.) 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. |
|
(Deprecated: Use network_v4 class.) 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. (Deprecated: Use other overload.) Get the address as a string in dotted decimal format. |
|
Get the address as an unsigned integer in host byte order. |
|
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 integer 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: boost/asio/ip/address_v4_iterator.hpp
Convenience header: boost/asio.hpp