Skip to main content

Module mdns

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.
MdnsAdvertisedGateway
Runtime gateway endpoint advertised over LAN discovery.
MdnsPeer
A discovered LAN peer.
MdnsPeerRegistry
In-memory peer registry populated from LAN discovery announcements.
MdnsPeerSnapshot
Authenticated API/status snapshot of a discovered LAN peer.

Enums§

PeerPacket
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.