CommandsRegistry.handle

Receives all commands from the socket and splits the command by " ". If a matching command is registered then the command will be called with the remaining arguments. This method will be called by the UnixSocketListener whenever a command is received.

class CommandsRegistry
void
handle
(,,
scope void delegate send_response
,
scope void delegate
()
wait_reply
,)

Parameters

command cstring

The command received by the unix socket.

args cstring

The arguments provided with the command.

send_response void delegate

Delegate to call with response string.

wait_reply void delegate
()

Delegate to call to obtain the reply from the user

socket IODevice

connected socket stream

Meta