i2p: construct Session with Proxy instead of CService

This commit is contained in:
Matthew Zipkin
2023-07-13 12:40:42 -04:00
parent d9318a37ec
commit a88bf9dedd
4 changed files with 22 additions and 14 deletions

View File

@@ -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.