Changeset View
Changeset View
Standalone View
Standalone View
src/torcontrol.h
// Copyright (c) 2015 The Bitcoin Core developers | // Copyright (c) 2015 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
/** | /** | ||||
* Functionality for communicating with Tor. | * Functionality for communicating with Tor. | ||||
*/ | */ | ||||
#ifndef BITCOIN_TORCONTROL_H | #ifndef BITCOIN_TORCONTROL_H | ||||
#define BITCOIN_TORCONTROL_H | #define BITCOIN_TORCONTROL_H | ||||
#include <string> | #include <string> | ||||
class CService; | |||||
extern const std::string DEFAULT_TOR_CONTROL; | extern const std::string DEFAULT_TOR_CONTROL; | ||||
static const bool DEFAULT_LISTEN_ONION = true; | static const bool DEFAULT_LISTEN_ONION = true; | ||||
void StartTorControl(); | void StartTorControl(CService onion_service_target); | ||||
void InterruptTorControl(); | void InterruptTorControl(); | ||||
void StopTorControl(); | void StopTorControl(); | ||||
CService DefaultOnionServiceTarget(); | |||||
#endif // BITCOIN_TORCONTROL_H | #endif // BITCOIN_TORCONTROL_H |