|
join 1.0
lightweight network framework library
|
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 Dot & | v4 () noexcept |
| get protocol suitable for IPv4 address family. | |
| static Dot & | v6 () 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. | |
DNS over TLS protocol class.
| using join::Dot::Endpoint = BasicInternetEndpoint<Dot> |
| using join::Dot::Resolver = BasicTlsResolver<Dot> |
| using join::Dot::Socket = BasicTlsSocket<Dot> |
|
inlineconstexprnoexcept |
construct the DoT 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 DoT port.
|
staticconstexpr |
maximum DoT message size.