provides a common procedure for processing Nacks More...
#include <process-nack-traits.hpp>
Protected Member Functions | |
virtual | ~ProcessNackTraitsBase ()=default |
void | processNack (const Face &inFace, const lp::Nack &nack, 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 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::MulticastStrategy::afterReceiveNack(), and nfd::fw::BestRouteStrategy2::afterReceiveNack().