boost::asio::ip::address

Implements version‐independent IP addresses.

Synopsis

Declared in <boost/asio/ip/address.hpp>

class address;

Member Functions

Name

Description

address [constructor]

Constructors

operator=

Assignment operators

is_loopback

Determine whether the address is a loopback address.

is_multicast

Determine whether the address is a multicast address.

is_unspecified

Determine whether the address is unspecified.

is_v4

Get whether the address is an IP version 4 address.

is_v6

Get whether the address is an IP version 6 address.

to_string

Get the address as a string.

to_v4

Get the address as an IP version 4 address.

to_v6

Get the address as an IP version 6 address.

Friends

Name

Description

boost::asio::ip::operator>=

Compare addresses for ordering.

boost::asio::ip::operator<=

Compare addresses for ordering.

boost::asio::ip::operator>

Compare addresses for ordering.

boost::asio::ip::operator<

Compare addresses for ordering.

boost::asio::ip::operator!=

Compare two addresses for inequality.

boost::asio::ip::operator==

Compare two addresses for equality.

Non-Member Functions

Name

Description

make_address

Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.

make_address

Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.

make_address

Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.

make_address

Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.

make_address

Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.

make_address

Create an address from an IPv4 address string in dotted decimal form, or from an IPv6 address in hexadecimal notation.

operator<<

Output an address as a string.

Description

The boost::asio::ip::address class provides the ability to use either IP version 4 or version 6 addresses.

Thread Safety

Distinct objects: Safe. Shared objects: Unsafe.

Created with MrDocs