|
Clementine
|
Represents an IPv6 network. More...
#include <network_v6.hpp>
Public Member Functions | |
| network_v6 () ASIO_NOEXCEPT | |
| Default constructor. | |
| ASIO_DECL | network_v6 (const address_v6 &addr, unsigned short prefix_len) |
| Construct a network based on the specified address and prefix length. | |
| network_v6 (const network_v6 &other) ASIO_NOEXCEPT | |
| Copy constructor. | |
| network_v6 & | operator= (const network_v6 &other) ASIO_NOEXCEPT |
| Assign from another network. | |
| address_v6 | address () const ASIO_NOEXCEPT |
| Obtain the address object specified when the network object was created. | |
| unsigned short | prefix_length () const ASIO_NOEXCEPT |
| Obtain the prefix length that was specified when the network object was created. More... | |
| ASIO_DECL address_v6 | network () const ASIO_NOEXCEPT |
| Obtain an address object that represents the network address. | |
| ASIO_DECL address_v6_range | hosts () const ASIO_NOEXCEPT |
| Obtain an address range corresponding to the hosts in the network. | |
| network_v6 | canonical () const ASIO_NOEXCEPT |
| Obtain the true network address, omitting any host bits. | |
| bool | is_host () const ASIO_NOEXCEPT |
| Test if network is a valid host address. | |
| ASIO_DECL bool | is_subnet_of (const network_v6 &other) const |
| Test if a network is a real subnet of another network. | |
| ASIO_DECL std::string | to_string () const |
| Get the network as an address in dotted decimal format. | |
| ASIO_DECL std::string | to_string (asio::error_code &ec) const |
| Get the network as an address in dotted decimal format. | |
Friends | |
| bool | operator== (const network_v6 &a, const network_v6 &b) |
| Compare two networks for equality. | |
| bool | operator!= (const network_v6 &a, const network_v6 &b) |
| Compare two networks for inequality. | |
Related Functions | |
(Note that these are not member functions.) | |
| ASIO_DECL network_v6 | make_network_v6 (const char *str) |
| Create an IPv6 network from a string containing IP address and prefix length. | |
| ASIO_DECL network_v6 | make_network_v6 (const char *str, asio::error_code &ec) |
| Create an IPv6 network from a string containing IP address and prefix length. | |
| ASIO_DECL network_v6 | make_network_v6 (const std::string &str) |
| Create an IPv6 network from a string containing IP address and prefix length. | |
| ASIO_DECL network_v6 | make_network_v6 (const std::string &str, asio::error_code &ec) |
| Create an IPv6 network from a string containing IP address and prefix length. | |
Represents an IPv6 network.
The asio::ip::network_v6 class provides the ability to use and manipulate IP version 6 networks.
|
inline |
Obtain the prefix length that was specified when the network object was created.
1.8.13