Skip to main content

tcp

Function tcp 

Source
pub fn tcp(addr: SocketAddr) -> Result<TcpListener>
Expand description

Bind a TCP listener, making an IPv6 socket dual-stack so it also serves IPv4.

The returned listener is non-blocking, ready for axum_server::from_tcp.