26 #ifndef NFD_DAEMON_FW_SELF_LEARNING_STRATEGY_HPP
27 #define NFD_DAEMON_FW_SELF_LEARNING_STRATEGY_HPP
31 #include <ndn-cxx/prefix-announcement.hpp>
83 const shared_ptr<pit::Entry>& pitEntry)
override;
87 const shared_ptr<pit::Entry>& pitEntry)
override;
91 const shared_ptr<pit::Entry>& pitEntry)
override;
103 broadcastInterest(
const Interest& interest,
const Face& inFace,
104 const shared_ptr<pit::Entry>& pitEntry);
109 multicastInterest(
const Interest& interest,
const Face& inFace,
110 const shared_ptr<pit::Entry>& pitEntry,
117 asyncProcessData(
const shared_ptr<pit::Entry>& pitEntry,
const Face& inFace,
const Data& data);
127 needPrefixAnn(
const shared_ptr<pit::Entry>& pitEntry);
132 addRoute(
const shared_ptr<pit::Entry>& pitEntry,
const Face& inFace,
133 const Data& data,
const ndn::PrefixAnnouncement& pa);
138 renewRoute(
const Name& name,
FaceId inFaceId, time::milliseconds maxLifetime);
Represents a face-endpoint pair in the forwarder.
Main class of NFD's forwarding engine.
Generalization of a network interface.
StrategyInfo on pit::InRecord.
bool isNonDiscoveryInterest
static constexpr int getTypeId()
StrategyInfo on pit::OutRecord.
static constexpr int getTypeId()
bool isNonDiscoveryInterest
Self-learning forwarding strategy.
void afterReceiveNack(const lp::Nack &nack, const FaceEndpoint &ingress, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after a Nack is received.
void afterReceiveData(const Data &data, const FaceEndpoint &ingress, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after Data is received.
void afterReceiveInterest(const Interest &interest, const FaceEndpoint &ingress, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after an Interest is received.
static const Name & getStrategyName()
SelfLearningStrategy(Forwarder &forwarder, const Name &name=getStrategyName())
Base class of all forwarding strategies.
Contains arbitrary information placed by the forwarding strategy on table entries.
uint64_t FaceId
Identifies a face.
std::vector< NextHop > NextHopList
A collection of nexthops in a FIB entry.