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

DNS over UDP protocol class. More...

#include <protocol.hpp>

Public Types

using Endpoint = BasicInternetEndpoint<Dns>
 
using Socket = BasicDatagramSocket<Dns>
 
using Resolver = BasicDatagramResolver<Dns>
 

Public Member Functions

constexpr Dns (int family=AF_INET) noexcept
 construct the DNS 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 Dnsv4 () noexcept
 get protocol suitable for IPv4 address family.
 
static Dnsv6 () noexcept
 get protocol suitable for IPv6 address family.
 

Static Public Attributes

static constexpr uint16_t defaultPort = 53
 default DNS port.
 
static constexpr size_t maxMsgSize = 8192
 maximum DNS message size.
 

Detailed Description

DNS over UDP protocol class.

Member Typedef Documentation

◆ Endpoint

◆ Resolver

◆ Socket

Constructor & Destructor Documentation

◆ Dns()

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

construct the DNS protocol instance.

Parameters
familyIP address family.

Member Function Documentation

◆ family()

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

get the protocol IP address family.

Returns
the protocol IP address family.

◆ protocol()

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

get the protocol type.

Returns
the protocol type.

◆ type()

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

get the protocol communication semantic.

Returns
the protocol communication semantic.

◆ v4()

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

get protocol suitable for IPv4 address family.

Returns
an IPv4 address family suitable protocol.

◆ v6()

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

get protocol suitable for IPv6 address family.

Returns
an IPv6 address family suitable protocol.

Member Data Documentation

◆ defaultPort

uint16_t join::Dns::defaultPort = 53
staticconstexpr

default DNS port.

◆ maxMsgSize

size_t join::Dns::maxMsgSize = 8192
staticconstexpr

maximum DNS message size.


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