torcontrol: Remove libevent usage

Replace libevent-based approach with using the Sock class and CThreadInterrupt.
This commit is contained in:
Fabian Jahr
2025-12-27 01:29:04 +01:00
parent 8444efbd4a
commit eae193e750
3 changed files with 263 additions and 217 deletions

View File

@@ -14,12 +14,14 @@
class DummyTorControlConnection : public TorControlConnection
{
CThreadInterrupt m_dummy_interrupt;
public:
DummyTorControlConnection() : TorControlConnection{nullptr}
DummyTorControlConnection() : TorControlConnection{m_dummy_interrupt}
{
}
bool Connect(const std::string&, const ConnectionCB&, const ConnectionCB&)
bool Connect(const std::string&)
{
return true;
}