Skip to main content

Module acceptor

Module acceptor 

Source
Expand description

Acceptors used by the stream-based and WebSocket backends. Accepts a connection, wraps it with a codec, and hands the split halves to the server.

Structsยง

StreamAcceptor ๐Ÿ”’
Byte-stream acceptor: accepts a stream, wraps with a framed codec, and hands the split halves to the server.
WsAcceptor ๐Ÿ”’
WebSocket acceptor: accepts a byte stream, runs the WS handshake, and hands the split halves to the server.

Traitsยง

AsyncAcceptor ๐Ÿ”’
Produces framed connections and hands them off to the server.
StreamListener ๐Ÿ”’
A listener that produces byte streams.