Expand description
Module used when working with message segmentation.
Modules§
- segment_
reader - Module helping with processing message segmentation related messages.
Structs§
- Segment
Chunk - Message providing a chunk of a split message.
- Segment
Start - Message indicating that an incoming message has been split and needs to be reconstructed.
Constants§
- MAX_
DATA_ SIZE - Maximum allowed size by noise protocol: http://www.noiseprotocol.org/noise.html#message-format
- SEGMENT_
CHUNK_ TYPE - The type of the
SegmentChunk
message. - SEGMENT_
START_ TYPE - The type of the
SegmentStart
message.
Functions§
- get_
segments - Split the given data into multiple segments, pre-pending the message type to enable decoding on the receiving side.