mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
use shared_ptr for ClientDestination
This commit is contained in:
parent
58ebd8cc59
commit
52f806ff94
10 changed files with 48 additions and 52 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue