contains information about an Interest on an incoming or outgoing face More...
#include <pit-face-record.hpp>
Public Member Functions | |
FaceRecord (shared_ptr< Face > face) | |
shared_ptr< Face > | getFace () const |
uint32_t | getLastNonce () const |
time::steady_clock::TimePoint | getLastRenewed () const |
time::steady_clock::TimePoint | getExpiry () const |
gives the time point this record expires More... | |
void | update (const Interest &interest) |
updates lastNonce, lastRenewed, expiry fields More... | |
Public Member Functions inherited from nfd::StrategyInfoHost | |
template<typename T > | |
shared_ptr< T > | getStrategyInfo () const |
get a StrategyInfo item More... | |
template<typename T > | |
void | setStrategyInfo (shared_ptr< T > strategyInfo) |
set a StrategyInfo item More... | |
template<typename T , typename ... A> | |
shared_ptr< T > | getOrCreateStrategyInfo (A &&... args) |
get or create a StrategyInfo item More... | |
void | clearStrategyInfo () |
clear all StrategyInfo items More... | |
contains information about an Interest on an incoming or outgoing face
Definition at line 40 of file pit-face-record.hpp.
|
explicit |
Definition at line 31 of file pit-face-record.cpp.
|
inline |
Definition at line 74 of file pit-face-record.hpp.
Referenced by nfd::fw::Strategy::sendNacks(), and nfd::Forwarder::startProcessNack().
|
inline |
Definition at line 80 of file pit-face-record.hpp.
Referenced by nfd::insertNonceToDnl(), and nfd::pit::OutRecord::setIncomingNack().
|
inline |
Definition at line 86 of file pit-face-record.hpp.
Referenced by nfd::fw::RetxSuppression::getLastOutgoing(), and nfd::Forwarder::startProcessNack().
|
inline |
gives the time point this record expires
Definition at line 92 of file pit-face-record.hpp.
Referenced by nfd::compare_InRecord_expiry().
void nfd::pit::FaceRecord::update | ( | const Interest & | interest | ) |
updates lastNonce, lastRenewed, expiry fields
Definition at line 40 of file pit-face-record.cpp.
References ndn::DEFAULT_INTEREST_LIFETIME, ndn::Interest::getInterestLifetime(), ndn::Interest::getNonce(), and ndn::time::steady_clock::now().
Referenced by nfd::pit::InRecord::update().