UnixListener
accept
(Fn [(Ref UnixListener a)] (Result UnixStream String))
(accept listener)
accepts a new Unix domain connection, returning a UnixStream.
Blocks until a client connects. Returns (Result UnixStream String).
bind
(Fn [(Ref String a)] (Result UnixListener String))
(bind path)
binds a Unix domain socket listener to the given path.
Unlinks any existing socket at that path first, then starts listening.
Returns (Result UnixListener String).
close
(Fn [UnixListener] ())
closes the listener, releasing the file descriptor and unlinking the socket path.
while-accept
Macro
(while-accept listener name :rest forms)
accepts connections in a loop. Binds each accepted stream
to name and executes forms, then closes the stream. Loops forever.