mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
i2p: construct Session with Proxy instead of CService
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <compat/compat.h>
|
||||
#include <netaddress.h>
|
||||
#include <netbase.h>
|
||||
#include <sync.h>
|
||||
#include <util/fs.h>
|
||||
#include <util/sock.h>
|
||||
@@ -67,7 +68,7 @@ public:
|
||||
* `Session` object.
|
||||
*/
|
||||
Session(const fs::path& private_key_file,
|
||||
const CService& control_host,
|
||||
const Proxy& control_host,
|
||||
CThreadInterrupt* interrupt);
|
||||
|
||||
/**
|
||||
@@ -81,7 +82,7 @@ public:
|
||||
* `CThreadInterrupt` object is saved, so it must not be destroyed earlier than this
|
||||
* `Session` object.
|
||||
*/
|
||||
Session(const CService& control_host, CThreadInterrupt* interrupt);
|
||||
Session(const Proxy& control_host, CThreadInterrupt* interrupt);
|
||||
|
||||
/**
|
||||
* Destroy the session, closing the internally used sockets. The sockets that have been
|
||||
@@ -235,9 +236,9 @@ private:
|
||||
const fs::path m_private_key_file;
|
||||
|
||||
/**
|
||||
* The host and port of the SAM control service.
|
||||
* The SAM control service proxy.
|
||||
*/
|
||||
const CService m_control_host;
|
||||
const Proxy m_control_host;
|
||||
|
||||
/**
|
||||
* Cease network activity when this is signaled.
|
||||
|
||||
Reference in New Issue
Block a user