Expand description
Subprotocol LINK version 5.
Adds support for padding and negotiation.
Re-exportsยง
use bytes::Bytes;๐use bytes::BytesMut;๐use tor_cell::chancell::AnyChanCell;๐use tor_cell::chancell::codec;๐use tor_cell::restricted_msg;๐use super::MessageStage;๐use crate::Error;๐use crate::channel::ChannelType;๐use crate::channel::msg::decode_as_any;๐use crate::channel::msg::encode_as_any;๐
Enumsยง
- Handshake
Client ๐Initiator Msg - Handshake messages of a client that initiates a connection to a relay.
- Handshake
Relay ๐Initiator Msg - Handshake messages of a relay that initiates a connection. They are sent by the initiator and thus received by the responder.
- Handshake
Relay ๐Responder Msg - Handshake messages of a relay that responds to a connection. They are received by the initiator and thus sent by the responder.
- Open
Chan ๐MsgC2R - A channel message that we allow to be sent from a Client to a Relay on an open channel.
- Open
Chan ๐MsgR2C - A channel message that we allow to be sent from a Relay to a Client on an open channel.
- Open
Chan ๐MsgR2R - A channel message that we allow to be sent (bidirectionally) from a Relay to a Relay on an open channel.
Functionsยง
- decode_
cell ๐ - Decode cell using the given channel type, message stage, codec and byte source.
- encode_
cell ๐ - Encode a given cell which can contains any type of messages. It is filtered through its restricted message set at encoding time.