Multicast DNS protocol class.
More...
#include <mdns_protocol.hpp>
|
| 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 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 constexpr uint16_t | defaultPort = 5353 |
| | default DNS port.
|
| |
| static constexpr size_t | maxMsgSize = 8192 |
| | maximum DNS message size.
|
| |
Multicast DNS protocol class.
◆ Endpoint
◆ Peer
◆ Socket
◆ Mdns()
| join::Mdns::Mdns |
( |
int | family = AF_INET | ) |
|
|
inlineexplicitconstexprnoexcept |
construct the mDNS protocol instance.
- Parameters
-
◆ family()
| int join::Mdns::family |
( |
| ) |
const |
|
inlineconstexprnoexcept |
get the protocol IP address family.
- Returns
- the protocol IP address family.
◆ multicastAddress()
| static IpAddress join::Mdns::multicastAddress |
( |
int | family | ) |
|
|
inlinestaticnoexcept |
get multicast address for the given address family.
- Parameters
-
- Returns
- multicast IP address.
◆ protocol()
| int join::Mdns::protocol |
( |
| ) |
const |
|
inlineconstexprnoexcept |
get the protocol type.
- Returns
- the protocol type.
◆ type()
| int join::Mdns::type |
( |
| ) |
const |
|
inlineconstexprnoexcept |
get the protocol communication semantic.
- Returns
- the protocol communication semantic.
◆ v4()
| static Mdns & join::Mdns::v4 |
( |
| ) |
|
|
inlinestaticnoexcept |
get protocol suitable for IPv4 address family.
- Returns
- an IPv4 address family suitable protocol.
◆ v6()
| static Mdns & join::Mdns::v6 |
( |
| ) |
|
|
inlinestaticnoexcept |
get protocol suitable for IPv6 address family.
- Returns
- an IPv6 address family suitable protocol.
◆ defaultPort
| uint16_t join::Mdns::defaultPort = 5353 |
|
staticconstexpr |
◆ maxMsgSize
| size_t join::Mdns::maxMsgSize = 8192 |
|
staticconstexpr |
maximum DNS message size.
The documentation for this class was generated from the following file: