Skip to main content

Module protocol

Module protocol 

Source
Expand description

Wire protocol: Commands (orchestrator→shim) and Events (shim→orchestrator).

Transport: length-prefixed JSON over a Unix SOCK_STREAM socketpair. 4-byte big-endian length prefix + JSON payload.

Structs§

Channel
Blocking, length-prefixed JSON channel over a Unix stream socket.

Enums§

Command
Event
ShimState

Functions§

socketpair
Create a connected pair of Unix stream sockets. Returns (parent_socket, child_socket).