TunnelPool added

This commit is contained in:
orignal 2014-03-14 12:35:02 -04:00
parent 70df239d14
commit 7caa46b381
5 changed files with 72 additions and 3 deletions

33
TunnelPool.h Normal file
View file

@ -0,0 +1,33 @@
#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