Contains information about an Interest on an incoming or outgoing face. More...
#include <pit-face-record.hpp>
Public Member Functions | |
FaceRecord (Face &face) | |
Face & | getFace () const |
uint32_t | getLastNonce () const |
time::steady_clock::TimePoint | getLastRenewed () const |
time::steady_clock::TimePoint | getExpiry () const |
Returns the time point at which 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 > | |
T * | getStrategyInfo () const |
Get a StrategyInfo item. More... | |
template<typename T , typename ... A> | |
std::pair< T *, bool > | insertStrategyInfo (A &&... args) |
Insert a StrategyInfo item. More... | |
template<typename T > | |
size_t | eraseStrategyInfo () |
Erase 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 39 of file pit-face-record.hpp.
|
inlineexplicit |
Definition at line 43 of file pit-face-record.hpp.
|
inline |
Definition at line 49 of file pit-face-record.hpp.
|
inline |
Definition at line 55 of file pit-face-record.hpp.
|
inline |
Definition at line 61 of file pit-face-record.hpp.
|
inline |
Returns the time point at which this record expires.
Definition at line 70 of file pit-face-record.hpp.
void nfd::pit::FaceRecord::update | ( | const Interest & | interest | ) |
updates lastNonce, lastRenewed, expiry fields
Definition at line 32 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().