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

DNS over TLS protocol class. More...

#include <protocol.hpp>

Public Types

using Endpoint = BasicInternetEndpoint<Dot>
 
using Socket = BasicTlsSocket<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.
 
constexpr int type () const noexcept
 get the protocol communication semantic.
 
constexpr int protocol () const noexcept
 get the protocol type.
 

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

Constructor & Destructor Documentation

◆ Dot()

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

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.

◆ protocol()

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

get the protocol type.

Returns
the protocol type.

◆ type()

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

get the protocol communication semantic.

Returns
the protocol communication semantic.

◆ 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: