|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
26 #ifndef NFD_DAEMON_FW_FORWARDER_HPP
27 #define NFD_DAEMON_FW_FORWARDER_HPP
69 return *m_unsolicitedDataPolicy;
75 BOOST_ASSERT(policy !=
nullptr);
76 m_unsolicitedDataPolicy =
std::move(policy);
87 this->onIncomingInterest(ingress, interest);
97 this->onIncomingData(ingress, data);
107 this->onIncomingNack(ingress, nack);
117 this->onNewNextHop(prefix, nextHop);
147 return m_measurements;
153 return m_strategyChoice;
159 return m_deadNonceList;
165 return m_networkRegionTable;
202 const shared_ptr<pit::Entry>& pitEntry,
const Interest& interest);
207 onContentStoreHit(
const FaceEndpoint& ingress,
const shared_ptr<pit::Entry>& pitEntry,
213 onOutgoingInterest(
const shared_ptr<pit::Entry>& pitEntry,
219 onInterestFinalize(
const shared_ptr<pit::Entry>& pitEntry);
244 onOutgoingNack(
const shared_ptr<pit::Entry>& pitEntry,
257 setExpiryTimer(
const shared_ptr<pit::Entry>& pitEntry, time::milliseconds duration);
272 template<
class Function>
274 dispatchToStrategy(
pit::Entry& pitEntry, Function trigger)
284 unique_ptr<fw::UnsolicitedDataPolicy> m_unsolicitedDataPolicy;
294 shared_ptr<Face> m_csFace;
302 #endif // NFD_DAEMON_FW_FORWARDER_HPP
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
StrategyChoice & getStrategyChoice()
signal::Signal< Forwarder, pit::Entry > beforeExpirePendingInterest
trigger before PIT entry expires
signal::Signal< Forwarder, Interest > afterCsMiss
Signals when the incoming interest pipeline gets a miss from the content store.
signal::Signal< Forwarder, Interest, Data > afterCsHit
Signals when the incoming interest pipeline gets a hit from the content store.
void startProcessNack(const FaceEndpoint &ingress, const lp::Nack &nack)
start incoming Nack processing
A common index structure for FIB, PIT, StrategyChoice, and Measurements.
fw::UnsolicitedDataPolicy & getUnsolicitedDataPolicy() const
implements the Content Store
#define VIRTUAL_WITH_TESTS
void startProcessInterest(const FaceEndpoint &ingress, const Interest &interest)
start incoming Interest processing
counters provided by Forwarder
provides a lightweight signal / event system
Represents an absolute name.
determines how to process an unsolicited Data
Measurements & getMeasurements()
Copyright (c) 2011-2015 Regents of the University of California.
const ForwarderCounters & getCounters() const
generalization of a network interface
NetworkRegionTable & getNetworkRegionTable()
fw::Strategy & findEffectiveStrategy(const Name &prefix) const
Get effective strategy for prefix.
Represents a face-endpoint pair in the forwarder.
void setUnsolicitedDataPolicy(unique_ptr< fw::UnsolicitedDataPolicy > policy)
Represents an Interest packet.
Represents a nexthop record in a FIB entry.
DeadNonceList & getDeadNonceList()
void startProcessNewNextHop(const Name &prefix, const fib::NextHop &nextHop)
start new nexthop processing
Represents a Data packet.
represents a forwarding strategy
Main class of NFD's forwarding engine.
Represents the Dead Nonce List.
void startProcessData(const FaceEndpoint &ingress, const Data &data)
start incoming Data processing
signal::Signal< Forwarder, pit::Entry, Face, Data > beforeSatisfyInterest
trigger before PIT entry is satisfied
Represents the Interest Table.
represents a Network Nack
#define PROTECTED_WITH_TESTS_ELSE_PRIVATE
Forwarder(FaceTable &faceTable)
Represents the Forwarding Information Base (FIB)
Represents the Strategy Choice table.
stores a collection of producer region names