Skip to main content

Module ipc

Module ipc 

Source

Modules§

detached
Detached spawn of a long-lived background service (daemon, proxy, background Cockpit) so it survives the caller and holds nothing of it.
process
runtime
Bounded client for an explicitly provisioned local Intelligence session. This module neither admits policy nor discovers, installs or trusts a peer. Callers own fresh scoped keys, sequence allocation, revocation and fallback.

Enums§

DaemonAddr
Platform-independent daemon address.

Functions§

bind_listener
Bind a listener on the given address and return a platform-specific listener.
cleanup
Remove any stale IPC endpoint (socket file / pipe marker).
connect
Connect to the daemon at the given address.
connect_enterprise
Connect to a private runtime socket and send its versioned handshake.
endpoint_dir
Directory of the daemon’s endpoint files (daemon.pid, daemon.sock, the start lock and stderr log): the data directory, so LEAN_CTX_DATA_DIR, the XDG layout and a legacy ~/.lean-ctx install each get their own daemon. The Windows pipe name is derived from it for the same reason.
legacy_endpoint_dir
Where releases up to 3.12.0 kept the endpoint files: the OS data-local directory, whatever the data directory was. Read only to stop a daemon that such a release started.