Module decode

Module decode 

Source
Expand description

DPlus packet decoders.

Both directions โ€” decode_client_to_server parses packets a client would send, decode_server_to_client parses packets a reflector would send.

Lenient: recoverable malformations push Diagnostics to the supplied sink but still return a parsed packet. Only fatal errors (wrong length, missing magic, zero stream id) return Err.

Functionsยง

decode_client_to_server
Decode a UDP datagram sent from a DPlus client (client โ†’ server).
decode_server_to_client
Decode a UDP datagram sent from a DPlus reflector (server โ†’ client).