Send a command, register a handler for the reply. A trailing CRLF is automatically added. Return true on success.
Declared in <torcontrol.h>
bool
Command(
std::string const& cmd,
ReplyHandlerCB const& reply_handler);
true on success, false on failure.
| Name | Description |
|---|---|
| cmd | Command line to send, without the trailing CRLF. |
| reply_handler | Handler invoked when the reply for this command arrives. |