CommandsRegistry.addHandler

Registers a command and the raw socket handler with the registry

  1. void addHandler(istring command, InteractiveHandler handler)
  2. void addHandler(istring command, Handler handler)
  3. void addHandler(istring command, RawSocketHandler handler)
    class CommandsRegistry
    void
    addHandler

Parameters

command istring

The command name

handler RawSocketHandler

The handler to call when command is received.

Meta