create inbound tunnels per local destination

This commit is contained in:
orignal 2014-03-14 15:13:34 -04:00
parent 7caa46b381
commit cba18faa87
7 changed files with 112 additions and 12 deletions

View file

@ -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;
};
};
}
}