Skip to main content

lan_needs

Function lan_needs 

Source
pub fn lan_needs(
    web_port: u16,
    ws_port: u16,
    viewer_port: Option<u16>,
) -> Vec<Need>
Expand description

The inbound traffic a LAN peer needs: our web and ws ports (TCP), the mDNS port (UDP 5353) and the UDP broadcast-probe responder that mobile clients use when mDNS is filtered (discovery::UDP_DISCOVERY_PORT, spec 4.1 puts it in the same rule as 5353; #4151). While a viewer listener is up (viewer_port), the port a paired phone or computer connects to is a need too: it is TCP, and it is the one the other machine is dropped on when no rule names it.