...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
An IP version 4 style address.
Defined in header <boost/url/ipv4_address.hpp>
class ipv4_address
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 |
---|---|
ipv4_address [constructor] |
Constructor. |
Return true if the address is a loopback address. |
|
Return true if the address is a multicast address. |
|
Return true if the address is unspecified. |
|
Copy Assignment. |
|
Write a dotted decimal string representing the address to a buffer. |
|
Return the address as bytes, in network byte order. |
|
Return the address as a string in dotted decimal format. |
|
Return the address as an unsigned integer. |
Name |
Description |
---|---|
Return an address object that represents any address. |
|
Return an address object that represents the broadcast address. |
|
Return an address object that represents the loopback address. |
Name |
Description |
---|---|
The number of characters in the longest possible IPv4 string. |
Name |
Description |
---|---|
Return true if two addresses are equal. |
|
Return true if two addresses are not equal. |
|
Format the address to an output stream. |
Objects of this type are used to construct, parse, and manipulate IP version 6 addresses.
IPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet dec-octet = DIGIT ; 0-9 / %x31-39 DIGIT ; 10-99 / "1" 2DIGIT ; 100-199 / "2" %x30-34 DIGIT ; 200-249 / "25" %x30-35 ; 250-255
parse_ipv4_address
,
ipv6_address
.
Convenience header <boost/url.hpp>