Skip to main content

Module socket

Module socket 

Source

Functions§

cleanup_socket
Remove socket file if it exists. Best-effort, never panics. Sockets now live in ~/.synaps-cli/run/ (mode 0700), so symlink attacks from other users are not possible. Still refuse symlinks as defense-in-depth.
listen_session_socket
Bind a Unix socket at socket_path, accept connections, parse incoming events, push to queue. Runs until shutdown is set.