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
(
cstring command
,
cstring args
,
scope void delegate
(
cstring
)
send_response
,
scope void delegate
(
ref mstring buf
)
wait_reply
,)

Parameters

command cstring

The command received by the unix socket.

args cstring

The arguments provided with the command.

send_response void delegate
(
cstring
)

Delegate to call with response string.

wait_reply void delegate
(
ref mstring buf
)

Delegate to call to obtain the reply from the user

socket IODevice

connected socket stream

Meta