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

Default constructor.

Construct an address from raw bytes and scope ID.

Copy constructor.

any

Obtain an address object that represents any address.

from_string

Create an 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

Determine whether the address is an IPv4-compatible address.

is_v4_mapped

Determine whether the address is a mapped IPv4 address.

loopback

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.

to_v4

Converts an IPv4-mapped or IPv4-compatible address to an IPv4 address.

v4_compatible

Create an IPv4-compatible IPv6 address.

v4_mapped

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

operator<<

Output an address 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