[#TorController]
= TorController
:mrdocs:

Manages the node&apos;s Tor hidden service and control connection&period;

== Synopsis

Declared in `&lt;torcontrol&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class TorController;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:TorController/2constructor-0b.adoc[`TorController`]         [.small]#[constructor]#
| Constructors
| xref:TorController/2destructor.adoc[`&#126;TorController`] [.small]#[destructor]#
| Destroy the controller&period;
| xref:TorController/GetPrivateKeyFile.adoc[`GetPrivateKeyFile`] 
| Get name of file to store private key in
| xref:TorController/Interrupt.adoc[`Interrupt`] 
| Interrupt the controller thread
| xref:TorController/Join.adoc[`Join`] 
| Wait for the controller thread to exit
| xref:TorController/add_onion_cb.adoc[`add&lowbar;onion&lowbar;cb`] 
| Callback for ADD&lowbar;ONION result
| xref:TorController/auth_cb.adoc[`auth&lowbar;cb`] 
| Callback for AUTHENTICATE result
| xref:TorController/authchallenge_cb.adoc[`authchallenge&lowbar;cb`] 
| Callback for AUTHCHALLENGE result
| xref:TorController/connected_cb.adoc[`connected&lowbar;cb`] 
| Callback after successful connection
| xref:TorController/disconnected_cb.adoc[`disconnected&lowbar;cb`] 
| Callback after connection lost or failed connection attempt
| xref:TorController/get_socks_cb.adoc[`get&lowbar;socks&lowbar;cb`] 
| Callback for GETINFO net&sol;listeners&sol;socks result
| xref:TorController/protocolinfo_cb.adoc[`protocolinfo&lowbar;cb`] 
| Callback for PROTOCOLINFO result
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
