mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Allow for I2PTunnels without LocalDestination
This commit is contained in:
parent
c5c0d2060c
commit
ccb68088a8
2 changed files with 8 additions and 4 deletions
|
@ -17,6 +17,7 @@ namespace client
|
|||
const size_t I2P_TUNNEL_CONNECTION_BUFFER_SIZE = 8192;
|
||||
const int I2P_TUNNEL_CONNECTION_MAX_IDLE = 3600; // in seconds
|
||||
const int I2P_TUNNEL_DESTINATION_REQUEST_TIMEOUT = 10; // in seconds
|
||||
const uint16_t I2P_TUNNEL_DEFAULT_KEY_TYPE = i2p::data::SIGNING_KEY_TYPE_ECDSA_SHA256_P256;
|
||||
|
||||
class I2PTunnel;
|
||||
class I2PTunnelConnection: public std::enable_shared_from_this<I2PTunnelConnection>
|
||||
|
@ -58,8 +59,7 @@ namespace client
|
|||
{
|
||||
public:
|
||||
|
||||
I2PTunnel (ClientDestination * localDestination):
|
||||
m_LocalDestination (localDestination) {};
|
||||
I2PTunnel (ClientDestination * localDestination = nullptr);
|
||||
virtual ~I2PTunnel () { ClearConnections (); };
|
||||
|
||||
void AddConnection (std::shared_ptr<I2PTunnelConnection> conn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue