class
Obsctl::IPC::UnixServer
- Obsctl::IPC::UnixServer
- Reference
- Object
Overview
Unix domain socket server for the local obsctl daemon IPC endpoint.
Defined in:
obsctl/ipc/unix_server.crConstructors
-
.new(socket_path : String = SocketPath.resolve, codec : Codec = Codec.new)
Creates a server that will bind the configured socket path on listen.
Instance Method Summary
-
#accept : ClientSession
Accepts one client session from the bound server socket.
-
#bind : Nil
Creates the socket, removing stale socket files when no server responds.
-
#close : Nil
Closes the server socket and removes the socket path.
-
#listen(handler : Handler) : Nil
Binds the socket and handles accepted sessions until closed.
- #socket_path : String
Constructor Detail
Creates a server that will bind the configured socket path on listen.
Instance Method Detail
Binds the socket and handles accepted sessions until closed.