34 m_lastNonce = interest.getNonce();
35 m_lastRenewed = time::steady_clock::now();
37 auto lifetime = interest.getInterestLifetime();
38 if (lifetime < 0_ms) {
39 lifetime = ndn::DEFAULT_INTEREST_LIFETIME;
41 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...