Skip to main content

Module framing

Module framing 

Source
Expand description

Length-prefixed message framing for Unix socket IPC

Wire format: [4 bytes: payload length as u32 big-endian][payload bytes]

Functionsยง

read_framed
Read a length-prefixed message from a synchronous stream
read_framed_async
Read a length-prefixed message from an async tokio stream
write_framed
Write a length-prefixed message to a synchronous stream
write_framed_async
Write a length-prefixed message to an async tokio stream