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

#include <internet.h>

Public Member Functions

constexpr address () noexcept
 
constexpr address (const address_v4 &a) noexcept
 
constexpr address (const address_v6 &a) noexcept
 
constexpr bool is_v4 () const noexcept
 
constexpr bool is_v6 () const noexcept
 
constexpr address_v4 to_v4 () const
 get address_v4 part. More...
 
constexpr address_v6 to_v6 () const
 get address_v6 part. More...
 
constexpr bool is_unspecified () const noexcept
 
constexpr bool is_loopback () const noexcept
 
constexpr bool is_multicast () 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 into a string. More...
 

Private Attributes

union {
   address_v4   v4_
 
   address_v6   v6_
 
}; 
 
bool is_v4_
 

Constructor & Destructor Documentation

◆ address() [1/3]

constexpr net::ip::address::address ( )
inlineconstexprnoexcept

◆ address() [2/3]

constexpr net::ip::address::address ( const address_v4 a)
inlineconstexprnoexcept

◆ address() [3/3]

constexpr net::ip::address::address ( const address_v6 a)
inlineconstexprnoexcept

Member Function Documentation

◆ is_loopback()

constexpr bool net::ip::address::is_loopback ( ) const
inlineconstexprnoexcept

◆ is_multicast()

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

◆ is_unspecified()

constexpr bool net::ip::address::is_unspecified ( ) const
inlineconstexprnoexcept

◆ is_v4()

constexpr bool net::ip::address::is_v4 ( ) const
inlineconstexprnoexcept

◆ is_v6()

constexpr bool net::ip::address::is_v6 ( ) const
inlineconstexprnoexcept

◆ to_string()

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

convert an address into a string.

Returns
empty string on error.

◆ to_v4()

constexpr address_v4 net::ip::address::to_v4 ( ) const
inlineconstexpr

get address_v4 part.

Exceptions
bad_address_castif !is_v4()

◆ to_v6()

constexpr address_v6 net::ip::address::to_v6 ( ) const
inlineconstexpr

get address_v6 part.

Exceptions
bad_address_castif !is_v6()

Member Data Documentation

◆ 

union { ... } net::ip::address::@26

◆ is_v4_

bool net::ip::address::is_v4_
private

◆ v4_

address_v4 net::ip::address::v4_

◆ v6_

address_v6 net::ip::address::v6_

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