join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::Dot Class Reference

DNS over TLS protocol class. More...

#include <dot_protocol.hpp>

Public Types

using Transport = Tcp
 
using Endpoint = typename Transport::Endpoint
 
using Socket = BasicTlsWrapper<Dot>
 
using Resolver = BasicTlsResolver<Dot>
 

Public Member Functions

constexpr Dot (int family=AF_INET) noexcept
 construct the DoT protocol instance.
 
constexpr int family () const noexcept
 get the protocol IP address family.
 

Static Public Member Functions

static Dotv4 () noexcept
 get protocol suitable for IPv4 address family.
 
static Dotv6 () noexcept
 get protocol suitable for IPv6 address family.
 

Static Public Attributes

static constexpr uint16_t defaultPort = 853
 default DoT port.
 
static constexpr size_t maxMsgSize = 16384
 maximum DoT message size.
 

Detailed Description

DNS over TLS protocol class.

Member Typedef Documentation

◆ Endpoint

◆ Resolver

◆ Socket

◆ Transport

Constructor & Destructor Documentation

◆ Dot()

join::Dot::Dot ( int family = AF_INET)
inlineexplicitconstexprnoexcept

construct the DoT protocol instance.

Parameters
familyIP address family.

Member Function Documentation

◆ family()

int join::Dot::family ( ) const
inlineconstexprnoexcept

get the protocol IP address family.

Returns
the protocol IP address family.

◆ v4()

static Dot & join::Dot::v4 ( )
inlinestaticnoexcept

get protocol suitable for IPv4 address family.

Returns
an IPv4 address family suitable protocol.

◆ v6()

static Dot & join::Dot::v6 ( )
inlinestaticnoexcept

get protocol suitable for IPv6 address family.

Returns
an IPv6 address family suitable protocol.

Member Data Documentation

◆ defaultPort

uint16_t join::Dot::defaultPort = 853
staticconstexpr

default DoT port.

◆ maxMsgSize

size_t join::Dot::maxMsgSize = 16384
staticconstexpr

maximum DoT message size.


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