asio C++ library

PrevUpHomeNext

ip::address_v6

Implements IP version 6 style addresses.

class address_v6
Types

Name

Description

bytes_type

The type used to represent an address as an array of bytes.

Member Functions

Name

Description

address_v6 [constructor]

Default constructor.

Construct an address from raw bytes and scope ID.

Copy constructor.

any [static]

Obtain an address object that represents any address.

from_string [static]

(Deprecated: Use make_address_v6().) Create an IPv6 address from an IP address string.

is_link_local

Determine whether the address is link local.

is_loopback

Determine whether the address is a loopback address.

is_multicast

Determine whether the address is a multicast address.

is_multicast_global

Determine whether the address is a global multicast address.

is_multicast_link_local

Determine whether the address is a link-local multicast address.

is_multicast_node_local

Determine whether the address is a node-local multicast address.

is_multicast_org_local

Determine whether the address is a org-local multicast address.

is_multicast_site_local

Determine whether the address is a site-local multicast address.

is_site_local

Determine whether the address is site local.

is_unspecified

Determine whether the address is unspecified.

is_v4_compatible

(Deprecated: No replacement.) Determine whether the address is an IPv4-compatible address.

is_v4_mapped

Determine whether the address is a mapped IPv4 address.

loopback [static]

Obtain an address object that represents the loopback address.

operator=

Assign from another address.

scope_id

The scope ID of the address.

to_bytes

Get the address in bytes, in network byte order.

to_string

Get the address as a string.

(Deprecated: Use other overload.) Get the address as a string.

to_v4

(Deprecated: Use make_address_v4().) Converts an IPv4-mapped or IPv4-compatible address to an IPv4 address.

v4_compatible [static]

(Deprecated: No replacement.) Create an IPv4-compatible IPv6 address.

v4_mapped [static]

(Deprecated: Use make_address_v6().) Create an IPv4-mapped IPv6 address.

Friends

Name

Description

operator!=

Compare two addresses for inequality.

operator<

Compare addresses for ordering.

operator<=

Compare addresses for ordering.

operator==

Compare two addresses for equality.

operator>

Compare addresses for ordering.

operator>=

Compare addresses for ordering.

Related Functions

Name

Description

make_address_v6

Create an IPv6 address from raw bytes and scope ID.

Create an IPv6 address from an IP address string.

Createan IPv6 address from an IP address string.

Create an IPv4-mapped IPv6 address from an IPv4 address.

make_network_v6

Create an IPv6 network from an address and prefix length.

operator<<

Output an address as a string.

Output a network as a string.

The ip::address_v6 class provides the ability to use and manipulate IP version 6 addresses.

Thread Safety

Distinct objects: Safe.

Shared objects: Unsafe.

Requirements

Header: asio/ip/address_v6.hpp

Convenience header: asio.hpp


PrevUpHomeNext