Skip to main content

Module ipc_client

Module ipc_client 

Source
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