idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::net::resolver_options Struct Reference

Resolver hints used by the resolution functions. More...

Public Attributes

std::optional< address_familyfamily = std::nullopt
 Address family preference.
 
bool numeric_host = false
 Require the host to be a numeric address — skip the DNS lookup.
 
bool numeric_port = false
 Require the service to be a numeric port — skip the service-name lookup.
 
bool passive = false
 Request results suitable for bind() rather than connect().
 
std::optional< ip_protocolprotocol = std::nullopt
 Restrict results to a particular transport protocol.
 

Detailed Description

Resolver hints used by the resolution functions.

Definition at line 44 of file resolver.hpp.

Member Data Documentation

◆ family

std::optional<address_family> idfxx::net::resolver_options::family = std::nullopt

Address family preference.

std::nullopt accepts either family.

Definition at line 46 of file resolver.hpp.

◆ numeric_host

bool idfxx::net::resolver_options::numeric_host = false

Require the host to be a numeric address — skip the DNS lookup.

Definition at line 49 of file resolver.hpp.

◆ numeric_port

bool idfxx::net::resolver_options::numeric_port = false

Require the service to be a numeric port — skip the service-name lookup.

Definition at line 52 of file resolver.hpp.

◆ passive

bool idfxx::net::resolver_options::passive = false

Request results suitable for bind() rather than connect().

Definition at line 55 of file resolver.hpp.

◆ protocol

std::optional<ip_protocol> idfxx::net::resolver_options::protocol = std::nullopt

Restrict results to a particular transport protocol.

std::nullopt accepts any protocol.

Definition at line 58 of file resolver.hpp.


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