Lacca.Protocol (Lacca v0.1.5) View Source
This module provides helper functions for communicating with external
processes which implement the shellac
protocol. The wire format of
the protocol follows:
- u16 packet length (i.e: read next
n
bytes) - u8 packet flags
- [u8,...] packet payload (CBOR encoded)
NOTE: if the high bit (0x80) of the packet flags are set this message is incomplete and the payload must be buffered by the receiver.