UnixListener.this

Constructor to create the basic command handler directly from an array of handlers with support for interactive sessions.

  1. this(cstring address_path, EpollSelectDispatcher epoll, BasicCommandHandler.Handler[istring] handlers, int mode)
  2. this(istring address_path, EpollSelectDispatcher epoll, BasicCommandHandler.Handler[istring] handlers, BasicCommandHandler.InteractiveHandler[istring] interactive_handlers, int mode)

Parameters

address_path istring

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

epoll EpollSelectDispatcher

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

handlers BasicCommandHandler.Handler[istring]

Array of command to handler delegate.

interactive_handlers BasicCommandHandler.InteractiveHandler[istring]

Array of command to interactive handler delegate.

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