Provides a common procedure for processing Nacks. More...
#include <process-nack-traits.hpp>
Protected Member Functions | |
virtual | ~ProcessNackTraitsBase ()=default |
void | processNack (const lp::Nack &nack, const Face &inFace, const shared_ptr< pit::Entry > &pitEntry) |
Provides a common procedure for processing Nacks.
This procedure works as follows:
To use this helper, the strategy should inherit from ProcessNackTraits<MyStrategy>, and declare that specialization as a friend class. Then, invoke processNack() from the Strategy::afterReceiveNack() trigger.
Definition at line 49 of file process-nack-traits.hpp.
|
protectedvirtualdefault |
|
protected |
Definition at line 35 of file process-nack-traits.cpp.
References Face, ndn::lp::Nack::getInterest(), ndn::lp::NackHeader::getReason(), ndn::lp::Nack::getReason(), ndn::lp::isLessSevere(), NFD_LOG_DEBUG, ndn::lp::NONE, and ndn::lp::NackHeader::setReason().
Referenced by nfd::fw::RandomStrategy::afterReceiveNack(), and nfd::fw::BestRouteStrategy::afterReceiveNack().