Bitcoin Core 31.99.0
P2P Digital Currency
Classes | Functions | Variables
torcontrol.h File Reference
#include <netaddress.h>
#include <util/fs.h>
#include <util/sock.h>
#include <util/threadinterrupt.h>
#include <cstdint>
#include <deque>
#include <functional>
#include <memory>
#include <string>
#include <thread>
#include <vector>
Include dependency graph for torcontrol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TorControlReply
 Reply from Tor, can be single or multi-line. More...
 
class  TorControlConnection
 Low-level handling for Tor control connection. More...
 
class  TorController
 Controller that connects to Tor control socket, authenticate, then create and maintain an ephemeral onion service. More...
 

Functions

CService DefaultOnionServiceTarget (uint16_t port)
 

Variables

constexpr uint16_t DEFAULT_TOR_SOCKS_PORT {9050}
 Functionality for communicating with Tor. More...
 
constexpr int DEFAULT_TOR_CONTROL_PORT = 9051
 
const std::string DEFAULT_TOR_CONTROL
 Default control ip and port. More...
 
static const bool DEFAULT_LISTEN_ONION = true
 
constexpr int TOR_REPLY_OK {250}
 Tor control reply code. More...
 
constexpr int TOR_REPLY_UNRECOGNIZED {510}
 
constexpr int TOR_REPLY_SYNTAX_ERROR {512}
 Syntax error in command argument. More...
 

Function Documentation

◆ DefaultOnionServiceTarget()

CService DefaultOnionServiceTarget ( uint16_t  port)

Definition at line 742 of file torcontrol.cpp.

Variable Documentation

◆ DEFAULT_LISTEN_ONION

const bool DEFAULT_LISTEN_ONION = true
static

Definition at line 27 of file torcontrol.h.

◆ DEFAULT_TOR_CONTROL

const std::string DEFAULT_TOR_CONTROL
extern

Default control ip and port.

Definition at line 46 of file torcontrol.cpp.

◆ DEFAULT_TOR_CONTROL_PORT

constexpr int DEFAULT_TOR_CONTROL_PORT = 9051
constexpr

Definition at line 25 of file torcontrol.h.

◆ DEFAULT_TOR_SOCKS_PORT

constexpr uint16_t DEFAULT_TOR_SOCKS_PORT {9050}
constexpr

Functionality for communicating with Tor.

Definition at line 24 of file torcontrol.h.

◆ TOR_REPLY_OK

constexpr int TOR_REPLY_OK {250}
constexpr

Tor control reply code.

Ref: https://spec.torproject.org/control-spec/replies.html

Definition at line 30 of file torcontrol.h.

◆ TOR_REPLY_SYNTAX_ERROR

constexpr int TOR_REPLY_SYNTAX_ERROR {512}
constexpr

Syntax error in command argument.

Definition at line 32 of file torcontrol.h.

◆ TOR_REPLY_UNRECOGNIZED

constexpr int TOR_REPLY_UNRECOGNIZED {510}
constexpr

Definition at line 31 of file torcontrol.h.