Module codec

Source

Functionsยง

recv_frame
Receives data from the stream with a 4-byte length prefix. Returns an error if the message is too large or the stream is closed.
send_frame
Sends data to the sink with a 4-byte length prefix. Returns an error if the message is too large or the stream is closed.