Skip to main content

Module transport

Module transport 

Source
Expand description

Length-prefixed canonical JSON transport.

Wire format: [4-byte big-endian length][canonical JSON bytes]

The transport is generic over Read and Write so it works with pipes, TCP, Unix domain sockets, or in-memory buffers for testing.

Structs§

ChioTransport
Length-prefixed canonical JSON transport.

Enums§

TransportError
Errors produced by the transport layer.

Functions§

read_frame
Read a single length-prefixed frame from a reader.
write_frame
Write a single length-prefixed frame to a writer.