|
join 1.0
lightweight network framework library
|
Multicast DNS protocol class. More...
#include <protocol.hpp>
Public Types | |
| using | Endpoint = BasicInternetEndpoint<Mdns> |
| using | Socket = BasicDatagramSocket<Mdns> |
| using | Peer = BasicDatagramPeer<Mdns> |
Public Member Functions | |
| constexpr | Mdns (int family=AF_INET) noexcept |
| construct the mDNS 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 Mdns & | v4 () noexcept |
| get protocol suitable for IPv4 address family. | |
| static Mdns & | v6 () noexcept |
| get protocol suitable for IPv6 address family. | |
| static IpAddress | multicastAddress (int family) noexcept |
| get multicast address for the given address family. | |
Static Public Attributes | |
| static constexpr uint16_t | defaultPort = 5353 |
| default DNS port. | |
| static constexpr size_t | maxMsgSize = 8192 |
| maximum DNS message size. | |
Multicast DNS protocol class.
| using join::Mdns::Peer = BasicDatagramPeer<Mdns> |
| using join::Mdns::Socket = BasicDatagramSocket<Mdns> |
|
inlineconstexprnoexcept |
construct the mDNS protocol instance.
| family | IP address family. |
|
inlineconstexprnoexcept |
get the protocol IP address family.
|
inlinestaticnoexcept |
get multicast address for the given address family.
| family | 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.