Changeset View
Changeset View
Standalone View
Standalone View
src/torcontrol.cpp
Show First 20 Lines • Show All 388 Lines • ▼ Show 20 Lines | static bool WriteBinaryFile(const fs::path &filename, const std::string &data) { | ||||
fclose(f); | fclose(f); | ||||
return true; | return true; | ||||
} | } | ||||
/****** Bitcoin specific TorController implementation ********/ | /****** Bitcoin specific TorController implementation ********/ | ||||
/** | /** | ||||
* Controller that connects to Tor control socket, authenticate, then create | * Controller that connects to Tor control socket, authenticate, then create | ||||
* and maintain a ephemeral hidden service. | * and maintain an ephemeral hidden service. | ||||
*/ | */ | ||||
class TorController { | class TorController { | ||||
public: | public: | ||||
TorController(struct event_base *base, const std::string &target); | TorController(struct event_base *base, const std::string &target); | ||||
~TorController(); | ~TorController(); | ||||
/** Get name fo file to store private key in */ | /** Get name fo file to store private key in */ | ||||
fs::path GetPrivateKeyFile(); | fs::path GetPrivateKeyFile(); | ||||
▲ Show 20 Lines • Show All 409 Lines • Show Last 20 Lines |