Skip to main content

default_socket

Function default_socket 

Source
pub fn default_socket() -> PathBuf
Expand description

Where the socket daemon listens by default. $ZWIRE_HOST_SOCK overrides on every platform. Otherwise:

  • Windows — a per-user named pipe \\.\pipe\zwire-host-<user>.
  • Unix — $XDG_RUNTIME_DIR/zwire-host.sock, else ~/.zwire/host.sock.

On Windows the returned path’s leaf is used as the pipe’s namespaced name; the directory portion is ignored.