class

Obsctl::IPC::UnixServer

Inherits Reference < Object

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.

Source

Instance methods

accept

Accepts one client session from the bound server socket.

Source
bind

Creates the socket, removing stale socket files when no server responds.

Source
close

Closes the server socket and removes the socket path.

Source
listen(handler : Handler) : Nil

Binds the socket and handles accepted sessions until closed.

Source
socket_path
Source

Nested types