Skip to main content

apply_agent_names_poll

Function apply_agent_names_poll 

Source
pub(super) fn apply_agent_names_poll(
    entry: &mut LanInstance,
    peer: Option<PeerAgents>,
    now_secs: u64,
) -> bool
Expand description

Applies one poll of a peer’s agent-names route to its entry, and says whether what the frontend shows changed. A failed poll keeps the last-known names, since a flapping list is worse than a slightly old one, but clears the states and lines: mDNS can keep the peer looking fresh long after it stopped answering, and its last “working” would otherwise show indefinitely (#4703).