pick random tunnel from LeaseSet

This commit is contained in:
orignal 2014-03-23 09:25:16 -04:00
parent 38cb57a4c4
commit 74a7f8c869
5 changed files with 28 additions and 11 deletions

View file

@ -90,6 +90,8 @@ namespace stream
void SavePacket (Packet * packet);
void ProcessPacket (Packet * packet);
void UpdateCurrentRemoteLease ();
private:
@ -97,6 +99,7 @@ namespace stream
bool m_IsOpen, m_LeaseSetUpdated;
StreamingDestination * m_LocalDestination;
const i2p::data::LeaseSet& m_RemoteLeaseSet;
i2p::data::Lease m_CurrentRemoteLease;
i2p::util::Queue<Packet> m_ReceiveQueue;
std::set<Packet *, PacketCmp> m_SavedPackets;
i2p::tunnel::OutboundTunnel * m_OutboundTunnel;