Skip to main content

Module rpc

Module rpc 

Source
Expand description

Strict bounded JSONL/RPC process interface. Strict bounded LF-delimited RPC mode.

Structs§

RpcError
Bounded path- and secret-independent RPC error.
RpcFrameReader
Strict byte-oriented LF frame reader with a fixed memory bound.
RpcLineWriter
Owned bounded LF writer with per-frame flush acknowledgements.
RpcRequest
One strict versioned client request.
RpcRequestId
Bounded client-supplied response correlation identity.

Enums§

RpcErrorCode
Stable safe RPC failure classification.
RpcOutput
One server output frame: correlated response or asynchronous canonical event.
RpcReadError
Terminal strict-framing or input failure.
RpcRequestKind
Supported command and host-query request families.
RpcResponse
Successful or failed response payload correlated to one request.
RpcWriteError
Bounded RPC output failure.

Constants§

MAX_RPC_FRAME_BYTES
Maximum bytes accepted before one LF delimiter.
MAX_RPC_IN_FLIGHT_REQUESTS
One connection parses and dispatches at most one request at a time.
RPC_VERSION
Current independent RPC schema version.
RPC_WRITER_DEADLINE
Maximum enqueue, write, flush, or shutdown latency.
RPC_WRITER_QUEUE_CAPACITY
Maximum queued RPC output frames.

Functions§

run
Builds and owns a service for strict JSONL/RPC mode.
run_service
Runs one RPC connection over an existing mode-neutral service.