|
join 1.0
lightweight network framework library
|
mDNS peer acting as an announcer. More...


Public Member Functions | |
| MdnsAnnouncer () | |
| construct the announcer instance. | |
| void | onQuery (const DnsPacket &query) override |
| handle a mDNS query by replying with matching local records. | |
| void | onAnnouncement (const DnsPacket &packet) override |
| handle a mDNS announcement. | |
Public Attributes | |
| std::map< std::string, ResourceRecord > | _records |
| local resource records indexed by "host/type". | |
Static Public Attributes | |
| static const std::string | _iface = "veth0" |
| network interface to use. | |
| static const std::string | _host = "mytest.local" |
| local hostname. | |
| static const IpAddress | _hostIp4 = "192.168.10.1" |
| local IPv4 address. | |
| static const IpAddress | _hostIp6 = "fd00:10::1" |
| local IPv6 address. | |
| static const std::string | _service = "MyTest._foobar._tcp.local" |
| service instance name. | |
| static const std::string | _serviceType = "_foobar._tcp.local" |
| service type. | |
mDNS peer acting as an announcer.
|
inline |
construct the announcer instance.
|
inlineoverride |
handle a mDNS announcement.
| packet | the mDNS announcement received. |
|
inlineoverride |
handle a mDNS query by replying with matching local records.
| query | the mDNS query received. |
|
static |
local hostname.
|
static |
local IPv4 address.
|
static |
local IPv6 address.
|
static |
network interface to use.
| std::map<std::string, ResourceRecord> MdnsAnnouncer::_records |
local resource records indexed by "host/type".
|
static |
service instance name.
|
static |
service type.