Module lan_discovery

Module lan_discovery 

Source
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Β§

LanCacheEntry πŸ”’
LanDiscovery
LanDiscoveryController
Controller for live start/stop of LanDiscovery in 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’s ServiceInfo::new requires. 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.".