mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
delete expired LeaseSets
This commit is contained in:
parent
0a5d4741af
commit
acd21a04ae
4 changed files with 57 additions and 19 deletions
|
@ -12,14 +12,16 @@ namespace i2p
|
|||
namespace data
|
||||
{
|
||||
|
||||
LeaseSet::LeaseSet (const uint8_t * buf, int len)
|
||||
LeaseSet::LeaseSet (const uint8_t * buf, int len, bool unsolicited):
|
||||
m_IsUnsolicited (unsolicited)
|
||||
{
|
||||
memcpy (m_Buffer, buf, len);
|
||||
m_BufferLen = len;
|
||||
ReadFromBuffer ();
|
||||
}
|
||||
|
||||
LeaseSet::LeaseSet (const i2p::tunnel::TunnelPool& pool)
|
||||
LeaseSet::LeaseSet (const i2p::tunnel::TunnelPool& pool):
|
||||
m_IsUnsolicited (false)
|
||||
{
|
||||
m_BufferLen = 0;
|
||||
// header
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue