class

MeshCoreTCPMux::FrameCodec

Inherits Reference < Object

Namespace for the TCP multiplexer: transport, protocol validation, and per-client state.

Constants

CLIENT_TO_COMPANION_MARKER = '<'.ord.to_u8
COMPANION_TO_CLIENT_MARKER = '>'.ord.to_u8
MAX_PAYLOAD_SIZE = 176

Encodes and incrementally decodes the three-byte TCP envelope around companion payloads. It checks framing and assembly deadlines, leaving opcode validation to Protocol.

Class methods

encode(payload : Bytes, marker : UInt8) : Bytes
Source
validate_marker!(marker : UInt8) : Nil
Source

Nested types