UnixSocketListener.this

Constructor.

address_path is a file path that serves as the Unix domain server socket address. If it exists, it will be deleted and recreated.

class UnixSocketListener(CommandHandlerType)
this
(
cstring address_path
,,
CommandHandlerType handler
,
int mode = -1
)

Parameters

address_path cstring

the file path i.e. address of the Unix domain server socket

epoll EpollSelectDispatcher

the EpollSelectDispatcher instance to use for I/O (connection handler parameter)

handler CommandHandlerType

Command handler.

mode int

mode to apply after binding the socket file

Throws

Exception if - path is too long; path.length must be less than UNIX_PATH_MAX, - an error occurred creating or binding the server socket.

Meta