Umbral Socket
Lightweight IPC client and server over Unix sockets.
Umbral Socket uses a small binary framed protocol over Unix stream sockets.
Methods are identified by u8, and payloads are raw byte slices.
Installation
Client
use io;
use UmbralClient;
Server
Handlers receive shared state and the request payload. They return a static byte slice response.
use io;
use UmbralServer;
;
Protocol
UmbralClient is synchronous and owns one Unix socket connection. For high
performance dispatchers, implement the event loop directly over the protocol.
Request frame:
method: u8
payload_len: u32 big-endian
payload: [u8]
Response frame:
status: u8
payload_len: u32 big-endian
payload: [u8]