Skip to main content

serve_tcp

Function serve_tcp 

pub async fn serve_tcp(server: Arc<Server>, listener: TcpListener) -> Result<()>
Expand description

Listens on a TCP address (and optionally a Unix socket) until the task is cancelled. Each connection first completes the server’s TLS handshake and token exchange, if it has either (Server::set_security). A listener on a non-loopback address with neither prints a warning.