mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
pick random tunnel from LeaseSet
This commit is contained in:
parent
38cb57a4c4
commit
74a7f8c869
5 changed files with 28 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue