26 #ifndef NFD_DAEMON_FW_SELF_LEARNING_STRATEGY_HPP 27 #define NFD_DAEMON_FW_SELF_LEARNING_STRATEGY_HPP 83 const shared_ptr<pit::Entry>& pitEntry)
override;
87 const Face& inFace,
const Data& data)
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,
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 SelfLearningStrategy(Forwarder &forwarder, const Name &name=getStrategyName())
static constexpr int getTypeId()
generalization of a network interface
StrategyInfo on pit::OutRecord.
Represents an Interest packet.
void afterReceiveData(const shared_ptr< pit::Entry > &pitEntry, const Face &inFace, const Data &data) override
trigger after Data is received
Represents a collection of nexthops.
void afterReceiveNack(const Face &inFace, const lp::Nack &nack, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Nack is received
A prefix announcement object that represents an application's intent of registering a prefix toward i...
represents a Network Nack
Copyright (c) 2011-2015 Regents of the University of California.
bool isNonDiscoveryInterest
Represents an absolute name.
represents a forwarding strategy
StrategyInfo on pit::InRecord.
uint64_t FaceId
identifies a face
static const Name & getStrategyName()
Represents a Data packet.
void afterReceiveInterest(const Face &inFace, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Interest is received
bool isNonDiscoveryInterest
contains arbitrary information forwarding strategy places on table entries
static constexpr int getTypeId()