Skip to main content

Module listener

Module listener 

Source
Expand description

Listening endpoint for tcp://, tcp4://, tcp6:// URLs.

TcpListener wraps std::net::TcpListener and implements confium_net::Listener. Each accept yields a crate::TcpTransport wrapping the accepted std::net::TcpStream, so accepted peers speak the same length-prefixed framing as dial-out peers.

Structsยง

TcpListener
Listening endpoint for inbound TCP connections.