|
join 1.0
lightweight network framework library
|
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 Dns & | v4 () noexcept |
| get protocol suitable for IPv4 address family. | |
| static Dns & | v6 () 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. | |
DNS over UDP protocol class.
| using join::Dns::Endpoint = BasicInternetEndpoint<Dns> |
| using join::Dns::Resolver = BasicDatagramResolver<Dns> |
| using join::Dns::Socket = BasicDatagramSocket<Dns> |
|
inlineconstexprnoexcept |
construct the DNS protocol instance.
| family | IP address family. |
|
inlineconstexprnoexcept |
get the protocol IP address family.
|
inlineconstexprnoexcept |
get the protocol type.
|
inlineconstexprnoexcept |
get the protocol communication semantic.
|
inlinestaticnoexcept |
get protocol suitable for IPv4 address family.
|
inlinestaticnoexcept |
get protocol suitable for IPv6 address family.
|
staticconstexpr |
default DNS port.
|
staticconstexpr |
maximum DNS message size.