mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* check router info addresses for nullptr
* Request LS before expiration for smoother handover
This commit is contained in:
parent
a0144f093f
commit
eaac21cda1
6 changed files with 37 additions and 3 deletions
|
@ -60,6 +60,7 @@ namespace data
|
|||
bool IsExpired () const;
|
||||
bool IsEmpty () const { return m_Leases.empty (); };
|
||||
uint64_t GetExpirationTime () const { return m_ExpirationTime; };
|
||||
bool ExpiresSoon(const uint64_t dlt=1000 * 5) const ;
|
||||
bool operator== (const LeaseSet& other) const
|
||||
{ return m_BufferLen == other.m_BufferLen && !memcmp (m_Buffer, other.m_Buffer, m_BufferLen); };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue