Bitcoin Core  0.20.99
P2P Digital Currency
torcontrol.h
Go to the documentation of this file.
1 // Copyright (c) 2015-2019 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
8 #ifndef BITCOIN_TORCONTROL_H
9 #define BITCOIN_TORCONTROL_H
10 
11 #include <string>
12 
13 class CService;
14 
15 extern const std::string DEFAULT_TOR_CONTROL;
16 static const bool DEFAULT_LISTEN_ONION = true;
17 
18 void StartTorControl(CService onion_service_target);
19 void InterruptTorControl();
20 void StopTorControl();
21 
23 
24 #endif /* BITCOIN_TORCONTROL_H */
A combination of a network address (CNetAddr) and a (TCP) port.
Definition: netaddress.h:501
void InterruptTorControl()
Definition: torcontrol.cpp:766
CService DefaultOnionServiceTarget()
Definition: torcontrol.cpp:785
const std::string DEFAULT_TOR_CONTROL
Default control port.
Definition: torcontrol.cpp:34
void StartTorControl(CService onion_service_target)
Definition: torcontrol.cpp:747
void StopTorControl()
Definition: torcontrol.cpp:776
static const bool DEFAULT_LISTEN_ONION
Definition: torcontrol.h:16