idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
resolver.hpp File Reference

DNS resolution. More...

#include <idfxx/net/endpoint>
#include <idfxx/net/error>
#include <memory>
#include <optional>
#include <string_view>
#include <type_traits>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  idfxx::net::resolver_options
 Resolver hints used by the resolution functions. More...
 

Namespaces

namespace  idfxx
 
namespace  idfxx::net
 

Functions

endpoint idfxx::net::resolve_one (std::string_view host, port_number port, const resolver_options &opts={})
 Resolves a host and numeric port and returns the first matching endpoint.
 
result< endpointidfxx::net::try_resolve_one (std::string_view host, port_number port, const resolver_options &opts={})
 Resolves a host and numeric port and returns the first matching endpoint.
 
endpoint idfxx::net::resolve_one (std::string_view host, std::string_view service, const resolver_options &opts={})
 Resolves a host and service name and returns the first matching endpoint.
 
result< endpointidfxx::net::try_resolve_one (std::string_view host, std::string_view service, const resolver_options &opts={})
 Resolves a host and service name and returns the first matching endpoint.
 
template<typename F >
void idfxx::net::resolve_each (std::string_view host, port_number port, F &&f, const resolver_options &opts={})
 Visits each resolved endpoint for a host and numeric port without allocating.
 
template<typename F >
result< voididfxx::net::try_resolve_each (std::string_view host, port_number port, F &&f, const resolver_options &opts={})
 Visits each resolved endpoint for a host and numeric port without allocating.
 
template<typename F >
void idfxx::net::resolve_each (std::string_view host, std::string_view service, F &&f, const resolver_options &opts={})
 Visits each resolved endpoint for a host and service name without allocating.
 
template<typename F >
result< voididfxx::net::try_resolve_each (std::string_view host, std::string_view service, F &&f, const resolver_options &opts={})
 Visits each resolved endpoint for a host and service name without allocating.
 
std::vector< endpointidfxx::net::resolve (std::string_view host, port_number port, const resolver_options &opts={})
 Resolves a host and numeric port and collects every endpoint.
 
result< std::vector< endpoint > > idfxx::net::try_resolve (std::string_view host, port_number port, const resolver_options &opts={})
 Resolves a host and numeric port and collects every endpoint.
 
std::vector< endpointidfxx::net::resolve (std::string_view host, std::string_view service, const resolver_options &opts={})
 Resolves a host and service name and collects every endpoint.
 
result< std::vector< endpoint > > idfxx::net::try_resolve (std::string_view host, std::string_view service, const resolver_options &opts={})
 Resolves a host and service name and collects every endpoint.
 

Detailed Description

DNS resolution.

Definition in file resolver.hpp.