mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-08-26 10:10:24 +01:00
limit number of outbound packets if the peer can't handle it
This commit is contained in:
parent
8c204a4c10
commit
253a892b0f
3 changed files with 30 additions and 13 deletions
|
@ -87,8 +87,10 @@ namespace garlic
|
|||
{
|
||||
std::shared_ptr<i2p::tunnel::OutboundTunnel> outboundTunnel;
|
||||
std::shared_ptr<const i2p::data::Lease> remoteLease;
|
||||
// for streaming only
|
||||
int rtt; // RTT
|
||||
uint32_t updateTime; // seconds since epoch
|
||||
bool isJava; // based on choked value
|
||||
};
|
||||
|
||||
class GarlicDestination;
|
||||
|
@ -129,7 +131,7 @@ namespace garlic
|
|||
|
||||
std::shared_ptr<GarlicRoutingPath> GetSharedRoutingPath ();
|
||||
void SetSharedRoutingPath (std::shared_ptr<GarlicRoutingPath> path);
|
||||
|
||||
|
||||
GarlicDestination * GetOwner () const { return m_Owner; }
|
||||
void SetOwner (GarlicDestination * owner) { m_Owner = owner; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue