Skip to main content

Module listener

Module listener 

Source
Expand description

TLS listener and connection accept loop for pwr-server.

Uses synchronous I/O wrapped in tokio::task::spawn_blocking to keep the handler code simple (Read + Write traits) while still running in the tokio async runtime.

Functionsยง

run
Run the server main loop. Blocks until shutdown.