Skip to main content

Module stream

Module stream 

Source
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Β§

StreamComponents πŸ”’
A collection of components that can be combined to implement a Tor stream, or anything that requires a stream ID.
StreamTarget πŸ”’
Internal handle, used to implement a stream on a particular tunnel.

EnumsΒ§

CloseStreamBehavior πŸ”’
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Β§

StreamMpscReceiver πŸ”’
MPSC queue relating to a stream (either inbound or outbound), receiver
StreamMpscSender πŸ”’
MPSC queue relating to a stream (either inbound or outbound), sender