Skip to main content

bind

Function bind 

Source
pub async fn bind(
    addr: SocketAddr,
    key: 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 no key is given; 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.