Local-network peer discovery via mDNS — a thin adapter, not a rewrite. More...
#include "node/peer_network.h"#include "mdns/mdns.h"#include <atomic>#include <memory>#include <mutex>#include <string>#include <unordered_set>Go to the source code of this file.
Classes | |
| class | librats::MdnsDiscovery |
| struct | librats::MdnsDiscovery::Config |
Namespaces | |
| namespace | librats |
Local-network peer discovery via mDNS — a thin adapter, not a rewrite.
Wraps the existing MdnsClient (src/mdns.h) as a Subsystem WITHOUT modifying it. On start it announces our TCP listen port as an mDNS service and browses for the same service type, dialing discovered instances through the node. Each node uses a unique instance name (derived from its PeerId) so two nodes on the same host don't collide and can filter out their own announcement.
Definition in file mdns_discovery.h.