Skip to main content

Module wire

Module wire 

Source
Expand description

Length-prefixed wire format for Canon search protocol messages.

All messages use a 4-byte big-endian u32 length prefix followed by a CBOR-encoded payload. Maximum message size is 1MB.

Functionsยง

decode
Decode a message from length-prefixed CBOR wire format.
encode
Encode a message to length-prefixed CBOR wire format.
read_message
Read a length-prefixed CBOR message from an async reader.
write_keepalive
Send a keepalive probe (zero-length message).
write_message
Write a length-prefixed CBOR message to an async writer.