Expand description
IPC client for communicating with the aethermap daemon
This module provides utilities for sending requests to the daemon and receiving responses over a Unix domain socket with robust error handling, timeouts, and reconnection logic.
Structs§
- IpcClient
- IPC client with connection management and error handling
Enums§
- IpcError
- Errors that can occur during IPC communication
Constants§
- DEFAULT_
MAX_ RETRIES - Maximum number of reconnection attempts
- DEFAULT_
RETRY_ DELAY_ MS - Delay between reconnection attempts (in milliseconds)
- DEFAULT_
SOCKET_ PATH - Default socket path for the aethermap daemon
- DEFAULT_
TIMEOUT_ MS - Default timeout for operations (in milliseconds)
- MAX_
MESSAGE_ SIZE - Maximum message size (1MB)
Functions§
- deserialize
- Deserialize a message using bincode
- get_
analog_ calibration - Get analog calibration for a device and layer
- get_
auto_ switch_ rules - Get all auto-switch rules
- get_
macro_ settings - Get global macro settings
- is_
daemon_ running - Check if the daemon is running by attempting to connect to its socket
- send
- Send a request to the daemon using the default client
- send_
request - Send a request to the aethermap daemon
- send_
to_ path - Send a request to the daemon at a specific socket path
- send_
with_ timeout - Send a request with a custom timeout
- serialize
- Serialize a message using bincode
- set_
analog_ calibration - Set analog calibration for a device and layer
- set_
macro_ settings - Set global macro settings