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

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 Mdnsv4 () noexcept
 get protocol suitable for IPv4 address family.
 
static Mdnsv6 () 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.
 

Detailed Description

Multicast DNS protocol class.

Member Typedef Documentation

◆ Endpoint

◆ Peer

◆ Socket

Constructor & Destructor Documentation

◆ Mdns()

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

construct the mDNS protocol instance.

Parameters
familyIP address family.

Member Function Documentation

◆ 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
familyIP address family.
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.

Member Data Documentation

◆ defaultPort

uint16_t join::Mdns::defaultPort = 5353
staticconstexpr

default DNS port.

◆ maxMsgSize

size_t join::Mdns::maxMsgSize = 8192
staticconstexpr

maximum DNS message size.


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