26 #ifndef NFD_DAEMON_FW_PROCESS_NACK_TRAITS_HPP
27 #define NFD_DAEMON_FW_PROCESS_NACK_TRAITS_HPP
56 const shared_ptr<pit::Entry>& pitEntry);
60 sendNackForProcessNackTraits(
const shared_ptr<pit::Entry>& pitEntry,
Face& outFace,
61 const lp::NackHeader& header) = 0;
64 sendNacksForProcessNackTraits(
const shared_ptr<pit::Entry>& pitEntry,
65 const lp::NackHeader& header) = 0;
74 : m_strategy(strategy)
80 sendNackForProcessNackTraits(
const shared_ptr<pit::Entry>& pitEntry,
Face& outFace,
81 const lp::NackHeader& header)
override
83 m_strategy->sendNack(header, outFace, pitEntry);
87 sendNacksForProcessNackTraits(
const shared_ptr<pit::Entry>& pitEntry,
88 const lp::NackHeader& header)
override
90 m_strategy->sendNacks(header, pitEntry);
Generalization of a network interface.
Provides a common procedure for processing Nacks.
virtual ~ProcessNackTraitsBase()=default
void processNack(const lp::Nack &nack, const Face &inFace, const shared_ptr< pit::Entry > &pitEntry)
ProcessNackTraits(S *strategy)