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

contains information about an Interest toward an outgoing face More...

#include <pit-out-record.hpp>

Inheritance diagram for nfd::pit::OutRecord:
Collaboration diagram for nfd::pit::OutRecord:

Public Member Functions

 OutRecord (Face &face)
 
const lp::NackHeadergetIncomingNack () const
 
bool setIncomingNack (const lp::Nack &nack)
 sets a NACK received from getFace() More...
 
void clearIncomingNack ()
 clears last NACK More...
 
- Public Member Functions inherited from nfd::pit::FaceRecord
 FaceRecord (Face &face)
 
FacegetFace () 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...
 

Detailed Description

contains information about an Interest toward an outgoing face

Definition at line 36 of file pit-out-record.hpp.

Constructor & Destructor Documentation

◆ OutRecord()

nfd::pit::OutRecord::OutRecord ( Face face)
explicit

Definition at line 31 of file pit-out-record.cpp.

Member Function Documentation

◆ getIncomingNack()

const lp::NackHeader* nfd::pit::OutRecord::getIncomingNack ( ) const
inline
Returns
last NACK returned by getFace()

A nullptr return value means the Interest is still pending or has timed out. A non-null return value means the last outgoing Interest has been NACKed.

Definition at line 48 of file pit-out-record.hpp.

◆ setIncomingNack()

bool nfd::pit::OutRecord::setIncomingNack ( const lp::Nack nack)

sets a NACK received from getFace()

Returns
whether incoming NACK is accepted

This is invoked in incoming NACK pipeline. An incoming NACK is accepted if its Nonce matches getLastNonce(). If accepted, nack.getHeader() will be copied, and any pointer previously returned by .getIncomingNack() .

Definition at line 37 of file pit-out-record.cpp.

References ndn::lp::Nack::getHeader(), ndn::lp::Nack::getInterest(), nfd::pit::FaceRecord::getLastNonce(), and ndn::Interest::getNonce().

◆ clearIncomingNack()

void nfd::pit::OutRecord::clearIncomingNack ( )
inline

clears last NACK

This is invoked in outgoing Interest pipeline. This invalidates any pointer previously returned by .getIncomingNack() .

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


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