BasicCommandHandler

Provides basic command handling functionality for unix socket commands.

Constructors

this
this(Handler[istring] handlers, InteractiveHandler[istring] interactive_handlers)

Constructor

this
this(Handler[istring] handlers)

Constructor

Members

Aliases

Handler
alias Handler = void delegate(cstring, void delegate(cstring))

Alias for a non-interactive command handler delegate.

InteractiveHandler
alias InteractiveHandler = void delegate(cstring, void delegate(cstring), void delegate(ref mstring))

Alias for an interactive command handler delegate.

Functions

handle
void handle(cstring command, cstring args, void delegate(cstring) send_response, void delegate(ref mstring) wait_reply)

Receive the command from the unix socket and call appropriate handler delegate if registered.

Variables

handlers
Handler[istring] handlers;

Map of a command name to non-interactive handlers delegate

interactive_handlers
InteractiveHandler[istring] interactive_handlers;

Map of command name to interactive handler response delegate.

Meta