Expand description
LAN instance discovery via mDNS/DNS-SD.
Each AgentMux backend advertises itself as _agentmux._tcp.local. and
continuously browses for peers. Discovered instances are tracked in memory
and broadcast to frontend clients via EventBus.
StructsΒ§
- LanCache
Entry π - LanDiscovery
- LanDiscovery
Controller - Controller for live start/stop of
LanDiscoveryin response to setting changes. - LanInstance
ConstantsΒ§
- LAN_
AGENT_ πCACHE_ TTL_ SECS - LAN_
PEER_ πQUERY_ TIMEOUT_ SECS - SERVICE_
TYPE π
FunctionsΒ§
- mdns_
hostname π - Normalize an OS hostname into a valid mDNS host name by appending the
.local.suffix that mdns-sdβsServiceInfo::newrequires. Idempotent β already-normalized inputs pass through unchanged. We also strip any trailing dot first so"foo.local"doesnβt end up as"foo.local..local.".