Skip to main content

Module acceptor

Module acceptor 

Source
Expand description

Acceptors used by the stream-based and WebSocket backends. Accepting is split in two phases so the accept loop never blocks on a handshake: accept does the kernel accept, handle runs the TLS/WS handshake and hands the split halves to the server. The loop runs handle off to a separate task.

Structsยง

StreamAcceptor ๐Ÿ”’
Byte-stream acceptor, with an optional TLS handshake.
WsAcceptor ๐Ÿ”’
WebSocket acceptor, with an optional TLS handshake for wss://.

Traitsยง

AsyncAcceptor ๐Ÿ”’
Accepts raw streams and upgrades/handles them.
StreamListener ๐Ÿ”’
A listener that produces byte streams.