26 #ifndef NFD_DAEMON_FW_SELF_LEARNING_STRATEGY_HPP 27 #define NFD_DAEMON_FW_SELF_LEARNING_STRATEGY_HPP 31 #include <ndn-cxx/lp/prefix-announcement-header.hpp> 83 const shared_ptr<pit::Entry>& pitEntry)
override;
91 const shared_ptr<pit::Entry>& pitEntry)
override;
104 broadcastInterest(
const Interest& interest,
const Face& inFace,
105 const shared_ptr<pit::Entry>& pitEntry);
110 multicastInterest(
const Interest& interest,
const Face& inFace,
111 const shared_ptr<pit::Entry>& pitEntry,
118 asyncProcessData(
const shared_ptr<pit::Entry>& pitEntry,
const Face& inFace,
const Data& data);
128 needPrefixAnn(
const shared_ptr<pit::Entry>& pitEntry);
133 addRoute(
const shared_ptr<pit::Entry>& pitEntry,
const Face& inFace,
134 const Data& data,
const ndn::PrefixAnnouncement& pa);
139 renewRoute(
const Name& name,
FaceId inFaceId, time::milliseconds maxLifetime);
142 static const time::milliseconds ROUTE_RENEW_LIFETIME;
148 #endif // NFD_DAEMON_FW_SELF_LEARNING_STRATEGY_HPP Main class of NFD's forwarding engine.
static constexpr int getTypeId()
void afterReceiveData(const shared_ptr< pit::Entry > &pitEntry, const FaceEndpoint &ingress, const Data &data) override
Trigger after Data is received.
bool isNonDiscoveryInterest
static const Name & getStrategyName()
StrategyInfo on pit::InRecord.
Represents a face-endpoint pair in the forwarder.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
contains arbitrary information forwarding strategy places on table entries
StrategyInfo on pit::OutRecord.
generalization of a network interface
Represents a collection of nexthops.
Represents a forwarding strategy.
void afterReceiveNack(const FaceEndpoint &ingress, const lp::Nack &nack, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after Nack is received.
void afterReceiveInterest(const FaceEndpoint &ingress, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
Trigger after Interest is received.
SelfLearningStrategy(Forwarder &forwarder, const Name &name=getStrategyName())
uint64_t FaceId
Identifies a face.
Self-learning forwarding strategy.
static constexpr int getTypeId()