mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
464 B
33 lines
464 B
#ifndef TUNNEL_POOL__ |
|
#define TUNNEL_POOL__ |
|
|
|
#include <list> |
|
#include "LeaseSet.h" |
|
|
|
namespace i2p |
|
{ |
|
namespace tunnel |
|
{ |
|
class Tunnel; |
|
class InboundTunnel; |
|
class OutboundTunnel; |
|
|
|
class TunnelPool // per local destination |
|
{ |
|
public: |
|
|
|
TunnelPool (); |
|
~TunnelPool (); |
|
|
|
void TunnelCreationFailed (Tunnel * failedTunnel); |
|
void TunnelExpired (InboundTunnel * expiredTunnel); |
|
|
|
private: |
|
|
|
std::list<InboundTunnel *> m_InboundTunnels; |
|
}; |
|
} |
|
} |
|
|
|
#endif |
|
|
|
|