MySQL 8.0.40
Source Code Documentation
net::ip::basic_resolver< InternetProtocol > Class Template Reference

#include <internet.h>

Inheritance diagram for net::ip::basic_resolver< InternetProtocol >:
[legend]

Public Types

using executor_type = io_context::executor_type
 
using protocol_type = InternetProtocol
 
using endpoint_type = typename InternetProtocol::endpoint
 
using results_type = basic_resolver_results< InternetProtocol >
 
using error_type = impl::socket::error_type
 
- Public Types inherited from net::ip::resolver_base
using flags = std::bitset< 32 >
 

Public Member Functions

 basic_resolver (io_context &io_ctx)
 
stdx::expected< results_type, error_typeresolve (const std::string &host_name, const std::string &service_name, flags f)
 
stdx::expected< results_type, error_typeresolve (const std::string &host_name, const std::string &service_name)
 
stdx::expected< results_type, error_typeresolve (const endpoint_type &ep)
 

Private Attributes

io_contextio_ctx_
 

Additional Inherited Members

- Static Public Attributes inherited from net::ip::resolver_base
static constexpr flags passive = AI_PASSIVE
 
static constexpr flags canonical_name = AI_CANONNAME
 
static constexpr flags numeric_host = AI_NUMERICHOST
 
static constexpr flags numeric_service = AI_NUMERICSERV
 
static constexpr flags v4_mapped = AI_V4MAPPED
 
static constexpr flags all_matching = AI_ALL
 
static constexpr flags address_configured = AI_ADDRCONFIG
 

Member Typedef Documentation

◆ endpoint_type

template<typename InternetProtocol >
using net::ip::basic_resolver< InternetProtocol >::endpoint_type = typename InternetProtocol::endpoint

◆ error_type

template<typename InternetProtocol >
using net::ip::basic_resolver< InternetProtocol >::error_type = impl::socket::error_type

◆ executor_type

template<typename InternetProtocol >
using net::ip::basic_resolver< InternetProtocol >::executor_type = io_context::executor_type

◆ protocol_type

template<typename InternetProtocol >
using net::ip::basic_resolver< InternetProtocol >::protocol_type = InternetProtocol

◆ results_type

template<typename InternetProtocol >
using net::ip::basic_resolver< InternetProtocol >::results_type = basic_resolver_results<InternetProtocol>

Constructor & Destructor Documentation

◆ basic_resolver()

template<typename InternetProtocol >
net::ip::basic_resolver< InternetProtocol >::basic_resolver ( io_context io_ctx)
inlineexplicit

Member Function Documentation

◆ resolve() [1/3]

template<typename InternetProtocol >
stdx::expected< results_type, error_type > net::ip::basic_resolver< InternetProtocol >::resolve ( const endpoint_type ep)
inline

◆ resolve() [2/3]

template<typename InternetProtocol >
stdx::expected< results_type, error_type > net::ip::basic_resolver< InternetProtocol >::resolve ( const std::string &  host_name,
const std::string &  service_name 
)
inline

◆ resolve() [3/3]

template<typename InternetProtocol >
stdx::expected< results_type, error_type > net::ip::basic_resolver< InternetProtocol >::resolve ( const std::string &  host_name,
const std::string &  service_name,
flags  f 
)
inline

Member Data Documentation

◆ io_ctx_

template<typename InternetProtocol >
io_context& net::ip::basic_resolver< InternetProtocol >::io_ctx_
private

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