Skip to main content

Module local

Module local 

Source
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§

LocalClientConfig
Configuration for a Local client (connecting to shared instance).
LocalServerConfig
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.