Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

ip::network_v6

Represents an IPv6 network.

class network_v6
Member Functions

Name

Description

address

Obtain the address object specified when the network object was created.

canonical

Obtain the true network address, omitting any host bits.

hosts

Obtain an address range corresponding to the hosts in the network.

is_host

Test if network is a valid host address.

is_subnet_of

Test if a network is a real subnet of another network.

network

Obtain an address object that represents the network address.

network_v6

Default constructor.

Construct a network based on the specified address and prefix length.

Copy constructor.

operator=

Assign from another network.

prefix_length

Obtain the prefix length that was specified when the network object was created.

to_string

Get the network as an address in dotted decimal format.

Friends

Name

Description

operator!=

Compare two networks for inequality.

operator==

Compare two networks for equality.

Related Functions

Name

Description

make_network_v6

Create an IPv6 network from a string containing IP address and prefix length.

The ip::network_v6 class provides the ability to use and manipulate IP version 6 networks.

Thread Safety

Distinct objects: Safe.

Shared objects: Unsafe.

Requirements

Header: boost/asio/ip/network_v6.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext