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 |
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 > | |
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 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().
|
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::getLastOutgoing().
|
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(), websocketpp::lib::asio::milliseconds(), and ndn::time::steady_clock::now().
Referenced by nfd::pit::InRecord::update().