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 |
Interest::Nonce | 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.
References Face.
|
inline |
Definition at line 49 of file pit-face-record.hpp.
|
inline |
Definition at line 55 of file pit-face-record.hpp.
Referenced by nfd::pit::OutRecord::setIncomingNack().
|
inline |
Definition at line 61 of file pit-face-record.hpp.
Referenced by nfd::fw::getLastOutgoing().
|
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 35 of file pit-face-record.cpp.
References ndn::Interest::getInterestLifetime(), ndn::Interest::getNonce(), nfd::pit::MAX_LIFETIME, and ndn::time::steady_clock::now().
Referenced by getExpiry(), and nfd::pit::InRecord::update().