26 #ifndef NFD_DAEMON_FW_RANDOM_STRATEGY_HPP
27 #define NFD_DAEMON_FW_RANDOM_STRATEGY_HPP
52 const shared_ptr<pit::Entry>& pitEntry)
override;
56 const shared_ptr<pit::Entry>& pitEntry)
override;
Represents a face-endpoint pair in the forwarder.
Main class of NFD's forwarding engine.
A forwarding strategy that randomly chooses a nexthop.
static const Name & getStrategyName()
void afterReceiveNack(const lp::Nack &nack, const FaceEndpoint &ingress, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after a Nack is received.
void afterReceiveInterest(const Interest &interest, const FaceEndpoint &ingress, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after an Interest is received.
RandomStrategy(Forwarder &forwarder, const Name &name=getStrategyName())
Base class of all forwarding strategies.