Expand description
Tor stream handling.
A stream is an anonymized conversation; multiple streams can be multiplexed over a single circuit.
ModulesΒ§
- cmdcheck π
- Declare a βcommand checkerβ trait that checks whether a given relay message is acceptable on a given stream.
- flow_
ctrl π - Stream flow control.
- incoming π
hs-serviceorrelay - Incoming data stream cell handlers, shared by the relay and onion service implementations.
- queue π
- Queues for stream messages.
- raw π
- Declare the lowest level of stream: a stream that operates on raw cells.
StructsΒ§
- Stream
Components π - A collection of components that can be combined to implement a Tor stream, or anything that requires a stream ID.
- Stream
Target π - Internal handle, used to implement a stream on a particular tunnel.
EnumsΒ§
- Close
Stream πBehavior - A behavior to perform when closing a stream.
- Tunnel π
- A client or relay tunnel.
ConstantsΒ§
- RECV_
WINDOW_ πINIT - Initial value for inbound flow-control window on streams.
- SEND_
WINDOW_ πINIT - Initial value for outbound flow-control window on streams.
- STREAM_
READER_ πBUFFER - Size of the buffer used between the reactor and a
StreamReader.
FunctionsΒ§
- msg_
streamid π - Return the stream ID of
msg, if it has one.
Type AliasesΒ§
- Stream
Mpsc πReceiver - MPSC queue relating to a stream (either inbound or outbound), receiver
- Stream
Mpsc πSender - MPSC queue relating to a stream (either inbound or outbound), sender