Skip to main content

monitor_loop

Function monitor_loop 

Source
fn monitor_loop(
    rx: Receiver<DaemonEvent>,
    announced: Arc<Mutex<BTreeSet<Ipv4Addr>>>,
)
Expand description

Reads the daemon’s monitor channel and records the IPv4 addresses it announced our service on. Ends when the daemon shuts down (the channel disconnects). Runs on a blocking thread, like the browse loop.