Skip to main content

bind_addrs

Function bind_addrs 

Source
fn bind_addrs(
    addrs: &[SocketAddr],
    listening: &mut Vec<SocketAddr>,
    defaulted: bool,
) -> Result<Vec<TcpListener>>
Expand description

Binds the addresses nothing answers for yet, extending listening as it goes so a wildcard entry covers the ones behind it.

Failures surface here, before any listener is served. A defaulted address is skipped instead, since the built-in pair only guesses which loopback families the host has.