Expand description
Local shared instance interface.
Provides communication between the shared RNS instance and local client programs. Uses Unix abstract sockets on Linux, TCP on other platforms. HDLC framing over the connection (same as TCP interfaces).
Two modes:
LocalServer: The shared instance binds and accepts client connections.LocalClient: Connects to an existing shared instance.
Structs§
- Local
Client Config - Configuration for a Local client (connecting to shared instance).
- Local
Server Config - Configuration for a Local server (shared instance).
Functions§
- start_
client - Start a local client (connect to shared instance). Tries Unix socket first on Linux, falls back to TCP. Returns the writer for the driver.
- start_
server - Start a local server (shared instance). Tries Unix abstract socket first on Linux, falls back to TCP. Spawns an acceptor thread. Each client gets a dynamically allocated InterfaceId.