|
ASIO_DECL | address_v6 () ASIO_NOEXCEPT |
| Default constructor.
|
|
ASIO_DECL | address_v6 (const bytes_type &bytes, unsigned long scope_id=0) |
| Construct an address from raw bytes and scope ID.
|
|
ASIO_DECL | address_v6 (const address_v6 &other) ASIO_NOEXCEPT |
| Copy constructor.
|
|
ASIO_DECL address_v6 & | operator= (const address_v6 &other) ASIO_NOEXCEPT |
| Assign from another address.
|
|
unsigned long | scope_id () const ASIO_NOEXCEPT |
| The scope ID of the address. More...
|
|
void | scope_id (unsigned long id) ASIO_NOEXCEPT |
| The scope ID of the address. More...
|
|
ASIO_DECL bytes_type | to_bytes () const ASIO_NOEXCEPT |
| Get the address in bytes, in network byte order.
|
|
ASIO_DECL std::string | to_string () const |
| Get the address as a string.
|
|
ASIO_DECL std::string | to_string (asio::error_code &ec) const |
| (Deprecated: Use other overload.) Get the address as a string.
|
|
ASIO_DECL address_v4 | to_v4 () const |
| (Deprecated: Use make_address_v4().) Converts an IPv4-mapped or IPv4-compatible address to an IPv4 address. More...
|
|
ASIO_DECL bool | is_loopback () const ASIO_NOEXCEPT |
| Determine whether the address is a loopback address.
|
|
ASIO_DECL bool | is_unspecified () const ASIO_NOEXCEPT |
| Determine whether the address is unspecified.
|
|
ASIO_DECL bool | is_link_local () const ASIO_NOEXCEPT |
| Determine whether the address is link local.
|
|
ASIO_DECL bool | is_site_local () const ASIO_NOEXCEPT |
| Determine whether the address is site local.
|
|
ASIO_DECL bool | is_v4_mapped () const ASIO_NOEXCEPT |
| Determine whether the address is a mapped IPv4 address.
|
|
ASIO_DECL bool | is_v4_compatible () const |
| (Deprecated: No replacement.) Determine whether the address is an IPv4-compatible address. More...
|
|
ASIO_DECL bool | is_multicast () const ASIO_NOEXCEPT |
| Determine whether the address is a multicast address.
|
|
ASIO_DECL bool | is_multicast_global () const ASIO_NOEXCEPT |
| Determine whether the address is a global multicast address.
|
|
ASIO_DECL bool | is_multicast_link_local () const ASIO_NOEXCEPT |
| Determine whether the address is a link-local multicast address.
|
|
ASIO_DECL bool | is_multicast_node_local () const ASIO_NOEXCEPT |
| Determine whether the address is a node-local multicast address.
|
|
ASIO_DECL bool | is_multicast_org_local () const ASIO_NOEXCEPT |
| Determine whether the address is a org-local multicast address.
|
|
ASIO_DECL bool | is_multicast_site_local () const ASIO_NOEXCEPT |
| Determine whether the address is a site-local multicast address.
|
|
|
(Note that these are not member functions.)
|
address_v6 | make_address_v6 (const address_v6::bytes_type &bytes, unsigned long scope_id=0) |
| Create an IPv6 address from raw bytes and scope ID.
|
|
ASIO_DECL address_v6 | make_address_v6 (const char *str) |
| Create an IPv6 address from an IP address string.
|
|
ASIO_DECL address_v6 | make_address_v6 (const char *str, asio::error_code &ec) ASIO_NOEXCEPT |
| Create an IPv6 address from an IP address string.
|
|
ASIO_DECL address_v6 | make_address_v6 (const std::string &str) |
| Createan IPv6 address from an IP address string.
|
|
ASIO_DECL address_v6 | make_address_v6 (const std::string &str, asio::error_code &ec) ASIO_NOEXCEPT |
| Create an IPv6 address from an IP address string.
|
|
ASIO_DECL address_v6 | make_address_v6 (v4_mapped_t, const address_v4 &v4_addr) |
| Create an IPv4-mapped IPv6 address from an IPv4 address.
|
|
template<typename Elem , typename Traits > |
std::basic_ostream< Elem, Traits > & | operator<< (std::basic_ostream< Elem, Traits > &os, const address_v6 &addr) |
| Output an address as a string. More...
|
|
network_v6 | make_network_v6 (const address_v6 &addr, unsigned short prefix_len) |
| Create an IPv6 network from an address and prefix length.
|
|
template<typename Elem , typename Traits > |
std::basic_ostream< Elem, Traits > & | operator<< (std::basic_ostream< Elem, Traits > &os, const network_v6 &net) |
| Output a network as a string. More...
|
|
Implements IP version 6 style addresses.
The asio::ip::address_v6 class provides the ability to use and manipulate IP version 6 addresses.
- Thread Safety
- Distinct objects: Safe.
Shared objects: Unsafe.