N2R (node-to-relay) protocol
Packet format
/// Represents the actual end-to-end packet that is carried in the payloads. Either an application-level message, or a batch of reply blocks.
pub enum InnerPacket {
/// Normal messages
Message(Message),
/// Reply blocks, used to construct relay->anon messages
ReplyBlocks(Vec<ReplyBlock>),
/// An inner packet message with corresponding UDP port-like source and destinaton docks
pub struct Message {
pub source_dock: Dock,
pub dest_dock: Dock,
pub body: Vec<Bytes>,
}
pub type Dock = u32;
Socket abstraction
Last updated