Skip to main content

bind_tcp

Function bind_tcp 

Source
pub fn bind_tcp(addr: &str) -> Result<TcpListener>
Expand description

Bind a TCP listener for HTTP serving. Kept separate from the accept loop so the caller can log/act on a successful bind (or propagate the error) before the accept thread starts.