Module mdns
Expand description
LAN-local multicast peer discovery for ZeroClaw gateways.
This is a discovery hint surface only. Multicast packets are unauthenticated
and never grant access to /ws/nodes, A2A, or any gateway API. Peers still
have to satisfy the existing pairing/token/auth boundary before they can
connect or invoke anything.
Structs§
- Announcement
- Presence announcement broadcast to the local network.
- Bye
- Graceful departure notification.
- Mdns
Advertised Gateway - Runtime gateway endpoint advertised over LAN discovery.
- Mdns
Peer - A discovered LAN peer.
- Mdns
Peer Registry - In-memory peer registry populated from LAN discovery announcements.
- Mdns
Peer Snapshot - Authenticated API/status snapshot of a discovered LAN peer.
Enums§
- Peer
Packet - A ZeroClaw LAN discovery packet.
Functions§
- evict_
stale_ peers - handle_
datagram - is_
advertisable_ gateway_ addr - Return whether the actual bound gateway address can be advertised to LAN peers. Use this after bind fallback so discovery follows the real listener.
- run_
peer_ discovery - Run the LAN discovery loop until cancelled.