Skip to main content

Module wire

Module wire 

Source
Expand description

SCCP frame encoding and incremental stream decoding.

Construct an outbound Frame and call Frame::encode. For inbound TCP data, retain one FrameDecoder per connection and feed each received chunk to FrameDecoder::push; it handles both fragmented and coalesced frames while enforcing MAX_FRAME_SIZE. Typed message decoding happens after framing through the message enums in the parent module.

Structs§

Frame
One complete SCCP frame with an uninterpreted payload.
FrameDecoder
Incremental decoder for an SCCP byte stream.

Enums§

CodecError
Validation and serialization failures produced by framing and message codecs.

Constants§

HEADER_SIZE
Number of bytes in an SCCP frame header, including the message identifier.
MAX_FRAME_SIZE
Largest complete frame accepted or emitted by the framing layer.