Skip to main content

Module codec

Module codec 

Source
Expand description

Length-delimited codec for framing and serializing messages.

Functionsยง

framed_read
Wrap an AsyncRead with length-delimited codec framing for reading protocol messages.
framed_write
Wrap an AsyncWrite with length-delimited codec framing for writing protocol messages.
recv_message
Read and deserialize a JSON message from a framed reader.
send_message
Serialize a message as JSON and send it over a framed writer.