Skip to main content

socket_path

Function socket_path 

Source
pub fn socket_path(config: &Config) -> PathBuf
Expand description

Resolve the local-IPC endpoint path.

Returns $ZEROCLAW_SOCKET when set, otherwise a per-data_dir platform-native endpoint:

  • Unix: <data_dir>/daemon.sock (filesystem path)
  • Windows: \\.\pipe\zeroclaw-<hash> where <hash> is derived from data_dir so each data directory gets its own pipe