MySQL 8.0.39
Source Code Documentation
net::ip::address_v6 Class Reference

IPv6 address with scope_id. More...

#include <internet.h>

Classes

struct  bytes_type
 

Public Member Functions

constexpr address_v6 () noexcept
 
constexpr address_v6 (const bytes_type &bytes, scope_id_type scope_id=0) noexcept
 
constexpr bool is_unspecified () const noexcept
 
constexpr bool is_loopback () const noexcept
 
constexpr bool is_multicast () const noexcept
 
constexpr bool is_link_local () const noexcept
 
constexpr bool is_site_local () const noexcept
 
constexpr bool is_v4_mapped () const noexcept
 
constexpr bool is_multicast_node_local () const noexcept
 
constexpr bool is_multicast_link_local () const noexcept
 
constexpr bool is_multicast_site_local () const noexcept
 
constexpr bool is_multicast_org_local () const noexcept
 
constexpr bool is_multicast_global () const noexcept
 
constexpr bytes_type to_bytes () const noexcept
 
constexpr scope_id_type scope_id () const noexcept
 
template<class Allocator = std::allocator<char>>
std::basic_string< char, std::char_traits< char >, Allocator > to_string (const Allocator &a=Allocator()) const
 convert an address_v6 into a string. More...
 

Static Public Member Functions

static constexpr address_v6 any ()
 
static constexpr address_v6 loopback ()
 

Private Attributes

bytes_type bytes_
 
scope_id_type scope_id_
 

Detailed Description

IPv6 address with scope_id.

Constructor & Destructor Documentation

◆ address_v6() [1/2]

constexpr net::ip::address_v6::address_v6 ( )
inlineconstexprnoexcept

◆ address_v6() [2/2]

constexpr net::ip::address_v6::address_v6 ( const bytes_type bytes,
scope_id_type  scope_id = 0 
)
inlineconstexprnoexcept

Member Function Documentation

◆ any()

static constexpr address_v6 net::ip::address_v6::any ( )
inlinestaticconstexpr

◆ is_link_local()

constexpr bool net::ip::address_v6::is_link_local ( ) const
inlineconstexprnoexcept

◆ is_loopback()

constexpr bool net::ip::address_v6::is_loopback ( ) const
constexprnoexcept

◆ is_multicast()

constexpr bool net::ip::address_v6::is_multicast ( ) const
inlineconstexprnoexcept

◆ is_multicast_global()

constexpr bool net::ip::address_v6::is_multicast_global ( ) const
inlineconstexprnoexcept

◆ is_multicast_link_local()

constexpr bool net::ip::address_v6::is_multicast_link_local ( ) const
inlineconstexprnoexcept

◆ is_multicast_node_local()

constexpr bool net::ip::address_v6::is_multicast_node_local ( ) const
inlineconstexprnoexcept

◆ is_multicast_org_local()

constexpr bool net::ip::address_v6::is_multicast_org_local ( ) const
inlineconstexprnoexcept

◆ is_multicast_site_local()

constexpr bool net::ip::address_v6::is_multicast_site_local ( ) const
inlineconstexprnoexcept

◆ is_site_local()

constexpr bool net::ip::address_v6::is_site_local ( ) const
inlineconstexprnoexcept

◆ is_unspecified()

constexpr bool net::ip::address_v6::is_unspecified ( ) const
constexprnoexcept

◆ is_v4_mapped()

constexpr bool net::ip::address_v6::is_v4_mapped ( ) const
inlineconstexprnoexcept

◆ loopback()

static constexpr address_v6 net::ip::address_v6::loopback ( )
inlinestaticconstexpr

◆ scope_id()

constexpr scope_id_type net::ip::address_v6::scope_id ( ) const
inlineconstexprnoexcept

◆ to_bytes()

constexpr bytes_type net::ip::address_v6::to_bytes ( ) const
inlineconstexprnoexcept

◆ to_string()

template<class Allocator = std::allocator<char>>
std::basic_string< char, std::char_traits< char >, Allocator > net::ip::address_v6::to_string ( const Allocator &  a = Allocator()) const
inline

convert an address_v6 into a string.

Returns
empty string on error.

Member Data Documentation

◆ bytes_

bytes_type net::ip::address_v6::bytes_
private

◆ scope_id_

scope_id_type net::ip::address_v6::scope_id_
private

The documentation for this class was generated from the following file: