Expand description
Shared protocol codec for the Pocket Relay tunnel protocol
Structs§
- Message
Deserializer - Reader for deserializing various data types from a byte buffer
- Message
Serializer - Writer for serializing various data types into a byte buffer
- Tunnel
Message Header - Header before a tunnel message indicating the protocol version and ID of the tunnel
- Tunnel
Packet - Individual tunnel message packet, includes the packet header and the message
Enums§
- Message
Error - Errors that can occur while decoding
- Tunnel
Message - Variants of the tunnel body
- Tunnel
Message Type - Different types of messages that can be sent through the tunnel
Constants§
- VERSION
- Current version of the protocol
Functions§
- deserialize_
message - Deserializes a header and a message from the provided buffer
- serialize_
message - Serializes the provided message into byte form, uses the provided
tunnel_idas the tunnel ID in the message header