34 , m_lastRenewed(time::steady_clock::TimePoint::min())
35 , m_expiry(time::steady_clock::TimePoint::min())
42 m_lastNonce = interest.getNonce();
43 m_lastRenewed = time::steady_clock::now();
45 time::milliseconds lifetime = interest.getInterestLifetime();
46 if (lifetime < time::milliseconds::zero()) {
47 lifetime = ndn::DEFAULT_INTEREST_LIFETIME;
49 m_expiry = m_lastRenewed + lifetime;
void update(const Interest &interest)
updates lastNonce, lastRenewed, expiry fields
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...