Skip to main content

sibling_addr

Function sibling_addr 

Source
pub fn sibling_addr(
    listen_config: &ListenConfig,
    primary: SocketAddr,
    shared_port: u16,
) -> Option<SocketAddr>
Expand description

Returns the address for the opposite-family sibling socket in shared-port mode: that family’s configured listen address, rebound to the shared port that discv4 advertises for both families.