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 π
- 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Β§
- Incoming
Stream - A pending request from the other end of the circuit for us to open a new stream.
- Incoming
Stream Request Context - Information about a stream request, as passed to an
IncomingStreamRequestFilter. - Stream
Components π - A collection of components that can be combined to implement a Tor stream, or anything that requires a stream ID.
- Stream
Receiver - The read part of a stream on a particular circuit.
- 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.
- Incoming
Stream Request - The allowed incoming messages on an
IncomingStream. - Incoming
Stream Request Disposition - What action to take with an incoming stream request.
- 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.
TraitsΒ§
- Incoming
Stream Request Filter - A callback that can check whether a given stream request is acceptable immediately on its receipt.
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