mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-30 15:54:03 +02:00
torcontrol: Remove libevent usage
Replace libevent-based approach with using the Sock class and CThreadInterrupt.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user