separate requsted and unsolicited LeaseSets

This commit is contained in:
orignal 2014-10-13 17:45:07 -04:00
parent 96e8cab8fb
commit 3a4b6bd7b0
10 changed files with 32 additions and 36 deletions

View file

@ -12,16 +12,14 @@ namespace i2p
namespace data
{
LeaseSet::LeaseSet (const uint8_t * buf, int len, bool unsolicited):
m_IsUnsolicited (unsolicited)
LeaseSet::LeaseSet (const uint8_t * buf, int len)
{
memcpy (m_Buffer, buf, len);
m_BufferLen = len;
ReadFromBuffer ();
}
LeaseSet::LeaseSet (const i2p::tunnel::TunnelPool& pool):
m_IsUnsolicited (false)
LeaseSet::LeaseSet (const i2p::tunnel::TunnelPool& pool)
{
// header
const i2p::data::LocalDestination& localDestination = pool.GetLocalDestination ();