[#TorController-2constructor-0b]
= xref:TorController.adoc[TorController]::TorController
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Construct an empty controller&period; Used for testing only&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:TorController/2constructor-09.adoc[TorController]();
----

[.small]#xref:TorController/2constructor-09.adoc[_» more&period;&period;&period;_]#

Construct a controller for the given control center and onion service target&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:TorController/2constructor-0d.adoc[TorController](
    std::string const& tor&lowbar;control&lowbar;center,
    xref:CService.adoc[CService] const& target);
----

[.small]#xref:TorController/2constructor-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tor&lowbar;control&lowbar;center*
| Address of the Tor control socket in host&colon;port form&period;
| *target*
| Local service the onion service should forward to&period;
|===


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