Skip to main content

Module ipc

Module ipc 

Source
Expand description

IPC infrastructure for client-server communication

Uses the interprocess crate for cross-platform local sockets:

  • Unix domain sockets on Linux/macOS
  • Named pipes on Windows

Each session has two sockets: data (byte stream) and control (JSON messages).

Structs§

ClientConnection
Client connection to server
ServerConnection
A client connection (from the server’s perspective)
ServerListener
Server listener for accepting client connections
SocketPaths
Socket paths for a session
StreamWrapper
Wrapper for LocalSocketStream that provides thread-safe sharing Uses Arc<Mutex<>> internally to allow cloning and use across threads