mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
use shared_ptr for ClientDestination
This commit is contained in:
@@ -65,7 +65,7 @@ namespace client
|
||||
|
||||
public:
|
||||
|
||||
I2PClientTunnel (const std::string& destination, int port, ClientDestination * localDestination = nullptr);
|
||||
I2PClientTunnel (const std::string& destination, int port, std::shared_ptr<ClientDestination> localDestination = nullptr);
|
||||
~I2PClientTunnel () {}
|
||||
|
||||
void Start ();
|
||||
@@ -83,7 +83,7 @@ namespace client
|
||||
{
|
||||
public:
|
||||
|
||||
I2PServerTunnel (const std::string& address, int port, ClientDestination * localDestination);
|
||||
I2PServerTunnel (const std::string& address, int port, std::shared_ptr<ClientDestination> localDestination);
|
||||
|
||||
void Start ();
|
||||
void Stop ();
|
||||
|
||||
Reference in New Issue
Block a user