Skip to main content

announce_coordinator

Function announce_coordinator 

Source
pub fn announce_coordinator(data_port: u16, disc_port: u16, stop: &AtomicBool)
Expand description

Coordinator side of star discovery: a pure unicast responder on disc_port — a worker sends RLXQ, we reply RLXPORT <data_port>. Runs until stop. Deliberately does NOT broadcast on this socket: a coordinator that both beacons and receives on one socket starves incoming queries (its own zero-latency loopback beacons always win the recv race). LAN zero-config is handled by mDNS instead ([mdns_advertise]); this responder covers a worker that reaches us by name/IP (LAN, host.docker.internal, or a Tailscale MagicDNS name — anything routable).