Skip to main content

bind

Function bind 

Source
pub async fn bind(
    addr: SocketAddr,
    token_digest: Option<B3Hash>,
) -> Result<Bound, AxError>
Expand description

Judges the bind face, then binds the listener.

ยงErrors

E_CONFIG_INVALID from decide_bind, without touching the network, when an exposed address has no pairing token; the same code when the operating system refuses the address, most often because another process holds the port, or cannot say which address it gave.