Skip to main content

Module codec

Module codec 

Source
Expand description

Length-prefixed framing codec for Unix domain socket transport.

Wire format: [u32 BE length][JSON payload]. The length is the byte count of the JSON payload only (not including the 4-byte header).

Enums§

FrameError
Errors that can occur during frame read/write.

Functions§

read_message
Read a length-prefixed JSON frame and deserialize into a typed message.
write_message
Write a typed message as a length-prefixed JSON frame.