Implements version-independent IP addresses.
class address
Name |
Description |
---|---|
Default constructor. Construct an address from an IPv4 address. Construct an address from an IPv6 address. Copy constructor. |
|
Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation. |
|
Determine whether the address is a loopback address. |
|
Determine whether the address is a multicast address. |
|
Determine whether the address is unspecified. |
|
Get whether the address is an IP version 4 address. |
|
Get whether the address is an IP version 6 address. |
|
Assign from another address. Assign from an IPv4 address. Assign from an IPv6 address. |
|
Get the address as a string in dotted decimal format. |
|
Get the address as an IP version 4 address. |
|
Get the address as an IP version 6 address. |
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 |
---|---|
Output an address as a string. |
The ip::address
class provides the ability to use either IP version 4 or version 6 addresses.
Distinct objects: Safe.
Shared objects: Unsafe.
Header: asio/ip/address.hpp
Convenience header: asio.hpp