Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
torcontrol.h
Go to the documentation of this file.
1// Copyright (c) 2015 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
13class CService;
14
15extern const std::string DEFAULT_TOR_CONTROL;
16static const bool DEFAULT_LISTEN_ONION = true;
17
20void StopTorControl();
21
23
24#endif // BITCOIN_TORCONTROL_H
A combination of a network address (CNetAddr) and a (TCP) port.
Definition netaddress.h:545
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85
CService DefaultOnionServiceTarget()
const std::string DEFAULT_TOR_CONTROL
Default control port.
static const bool DEFAULT_LISTEN_ONION
Definition torcontrol.h:16
void InterruptTorControl()
void StartTorControl(CService onion_service_target)
void StopTorControl()