mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-17 04:41:48 +02:00
create inbound tunnels per local destination
This commit is contained in:
parent
7caa46b381
commit
cba18faa87
7 changed files with 112 additions and 12 deletions
11
TunnelBase.h
11
TunnelBase.h
|
@ -48,6 +48,17 @@ namespace tunnel
|
|||
|
||||
uint32_t m_CreationTime; // seconds since epoch
|
||||
};
|
||||
|
||||
struct TunnelCreationTimeCmp
|
||||
{
|
||||
bool operator() (const TunnelBase * t1, const TunnelBase * t2) const
|
||||
{
|
||||
if (t1->GetCreationTime () != t2->GetCreationTime ())
|
||||
return t1->GetCreationTime () > t2->GetCreationTime ();
|
||||
else
|
||||
return t1 < t2;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue