Module segmentation

Module segmentation 

Source
Expand description

Module used when working with message segmentation.

Modules§

segment_reader
Module helping with processing message segmentation related messages.

Structs§

SegmentChunk
Message providing a chunk of a split message.
SegmentStart
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.