Skip to main content

Module client

Module client 

Source
Expand description

Synchronous IPC client for the running-process daemon.

Connects to the daemon over a local socket (Unix domain socket on Linux/macOS, named pipe on Windows) and exchanges length-prefixed protobuf messages.

Structs§

DaemonClient
Synchronous IPC client that communicates with the daemon over a local socket.
SpawnCommandRequest
Request to spawn a detached daemonized shell command under daemon control.
SpawnedDaemon
Information about a daemonized process spawned by the service.

Enums§

ClientError
Errors produced by DaemonClient operations.

Functions§

connect_or_start
Connect to the daemon, starting it first if it is not running.
daemonize_command
Convenience helper that connects to the daemon and asks it to daemonize the provided shell command under the caller’s current cwd/environment.
launch_detached
Launch a detached shell command through the running-process daemon.