NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::pit::FaceRecord Class Reference

Contains information about an Interest on an incoming or outgoing face. More...

#include <pit-face-record.hpp>

Inheritance diagram for nfd::pit::FaceRecord:
Collaboration diagram for nfd::pit::FaceRecord:

Public Member Functions

 FaceRecord (Face &face)
 
FacegetFace () 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...
 

Detailed Description

Contains information about an Interest on an incoming or outgoing face.

Note
This is an implementation detail to extract common functionality of InRecord and OutRecord

Definition at line 39 of file pit-face-record.hpp.

Constructor & Destructor Documentation

◆ FaceRecord()

nfd::pit::FaceRecord::FaceRecord ( Face face)
inlineexplicit

Definition at line 43 of file pit-face-record.hpp.

References Face.

Member Function Documentation

◆ getFace()

Face& nfd::pit::FaceRecord::getFace ( ) const
inline

Definition at line 49 of file pit-face-record.hpp.

◆ getLastNonce()

Interest::Nonce nfd::pit::FaceRecord::getLastNonce ( ) const
inline

Definition at line 55 of file pit-face-record.hpp.

Referenced by nfd::pit::OutRecord::setIncomingNack().

◆ getLastRenewed()

time::steady_clock::TimePoint nfd::pit::FaceRecord::getLastRenewed ( ) const
inline

Definition at line 61 of file pit-face-record.hpp.

Referenced by nfd::fw::getLastOutgoing().

◆ getExpiry()

time::steady_clock::TimePoint nfd::pit::FaceRecord::getExpiry ( ) const
inline

Returns the time point at which this record expires.

Returns
getLastRenewed() + InterestLifetime

Definition at line 70 of file pit-face-record.hpp.

References Face, and update().

◆ update()

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().


The documentation for this class was generated from the following files: