mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
fa0074e2d8
-BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
24 lines
615 B
C++
24 lines
615 B
C++
// Copyright (c) 2015-2020 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
/**
|
|
* Functionality for communicating with Tor.
|
|
*/
|
|
#ifndef BITCOIN_TORCONTROL_H
|
|
#define BITCOIN_TORCONTROL_H
|
|
|
|
#include <string>
|
|
|
|
class CService;
|
|
|
|
extern const std::string DEFAULT_TOR_CONTROL;
|
|
static const bool DEFAULT_LISTEN_ONION = true;
|
|
|
|
void StartTorControl(CService onion_service_target);
|
|
void InterruptTorControl();
|
|
void StopTorControl();
|
|
|
|
CService DefaultOnionServiceTarget();
|
|
|
|
#endif /* BITCOIN_TORCONTROL_H */
|