[#TorControlConnection-Command] = xref:TorControlConnection.adoc[TorControlConnection]::Command :relfileprefix: ../ :mrdocs: Send a command, register a handler for the reply. A trailing CRLF is automatically added. Return true on success. == Synopsis Declared in `<torcontrol.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool Command( std::string const& cmd, xref:TorControlConnection/ReplyHandlerCB.adoc[ReplyHandlerCB] const& reply_handler); ---- == Return Value true on success, false on failure. == Parameters [cols="1,4"] |=== | Name| Description | *cmd* | Command line to send, without the trailing CRLF. | *reply_handler* | Handler invoked when the reply for this command arrives. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#