mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
separate requsted and unsolicited LeaseSets
This commit is contained in:
parent
96e8cab8fb
commit
3a4b6bd7b0
10 changed files with 32 additions and 36 deletions
|
@ -41,7 +41,7 @@ namespace data
|
|||
{
|
||||
public:
|
||||
|
||||
LeaseSet (const uint8_t * buf, int len, bool unsolicited = false);
|
||||
LeaseSet (const uint8_t * buf, int len);
|
||||
LeaseSet (const LeaseSet& ) = default;
|
||||
LeaseSet (const i2p::tunnel::TunnelPool& pool);
|
||||
LeaseSet& operator=(const LeaseSet& ) = default;
|
||||
|
@ -51,9 +51,6 @@ namespace data
|
|||
const uint8_t * GetBuffer () const { return m_Buffer; };
|
||||
size_t GetBufferLen () const { return m_BufferLen; };
|
||||
|
||||
bool IsUnsolicited () const { return m_IsUnsolicited; };
|
||||
void SetUnsolicited (bool unsolicited) { m_IsUnsolicited = unsolicited; };
|
||||
|
||||
// implements RoutingDestination
|
||||
const IdentHash& GetIdentHash () const { return m_Identity.GetIdentHash (); };
|
||||
const std::vector<Lease>& GetLeases () const { return m_Leases; };
|
||||
|
@ -74,7 +71,6 @@ namespace data
|
|||
uint8_t m_EncryptionKey[256];
|
||||
uint8_t m_Buffer[MAX_LS_BUFFER_SIZE];
|
||||
size_t m_BufferLen;
|
||||
bool m_IsUnsolicited;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue