Skip to main content

Module linkv4

Module linkv4 

Source
Expand description

Subprotocol LINK version 4.

Increases circuit ID width to 4 bytes.

Enumsยง

HandshakeClientInitiatorMsg ๐Ÿ”’
Handshake messages of a client that initiates a connection to a relay.
HandshakeRelayInitiatorMsg ๐Ÿ”’
Handshake messages of a relay that initiates a connection. They are sent by the initiator and thus received by the responder.
HandshakeRelayResponderMsg ๐Ÿ”’
Handshake messages of a relay that responds to a connection. They are received by the initiator and thus sent by the responder.
OpenChanMsgC2R ๐Ÿ”’
A channel message that we allow to be sent from a Client to a Relay on an open channel.
OpenChanMsgR2C ๐Ÿ”’
A channel message that we allow to be sent from a Relay to a Client on an open channel.
OpenChanMsgR2R ๐Ÿ”’
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.