Expand description
Peer discovery helpers (mDNS + optional DHT).
This module provides LAN discovery via mDNS and optional internet discovery via the DHT. It exposes async helpers to start advertisements and streams of discovered peers.
Structs§
- Discovery
Config - Mdns
Handle - Keeps the mDNS daemon and service registration alive.
- Peer
Info
Enums§
Functions§
- dht_
announce - Announce a peer in the DHT for the given channel.
- dht_
lookup - Lookup peers in the DHT for the given channel.
- discover_
peers - Start browsing for peers in the same channel on the LAN.
- local_
ipv4_ addrs - Enumerate local IPv4 addresses for mDNS advertisement.
- start_
dht - Start a DHT instance for internet discovery.
- start_
mdns_ advertisement - Publish this peer’s presence on the LAN via mDNS.