Unix domain socket server for the local obsctl daemon IPC endpoint.
Constructors
new(socket_path :
String =
SocketPath.resolve, codec :
Codec =
Codec.new)
Creates a server that will bind the configured socket path on listen.
SourceInstance methods
accept
Accepts one client session from the bound server socket.
Sourcebind
Creates the socket, removing stale socket files when no server responds.
Sourceclose
Closes the server socket and removes the socket path.
Sourcelisten(handler : Handler) : Nil
Binds the socket and handles accepted sessions until closed.
Source