Main class of NFD's forwarding engine. More...
#include <forwarder.hpp>
Public Member Functions | |
Forwarder (FaceTable &faceTable) | |
~Forwarder () | |
const ForwarderCounters & | getCounters () const |
fw::UnsolicitedDataPolicy & | getUnsolicitedDataPolicy () const |
void | setUnsolicitedDataPolicy (unique_ptr< fw::UnsolicitedDataPolicy > policy) |
void | startProcessInterest (const FaceEndpoint &ingress, const Interest &interest) |
start incoming Interest processing More... | |
void | startProcessData (const FaceEndpoint &ingress, const Data &data) |
start incoming Data processing More... | |
void | startProcessNack (const FaceEndpoint &ingress, const lp::Nack &nack) |
start incoming Nack processing More... | |
void | startProcessNewNextHop (const Name &prefix, const fib::NextHop &nextHop) |
start new nexthop processing More... | |
NameTree & | getNameTree () |
Fib & | getFib () |
Pit & | getPit () |
Cs & | getCs () |
Measurements & | getMeasurements () |
StrategyChoice & | getStrategyChoice () |
DeadNonceList & | getDeadNonceList () |
NetworkRegionTable & | getNetworkRegionTable () |
Public Attributes | |
signal::Signal< Forwarder, pit::Entry, Face, Data > | beforeSatisfyInterest |
trigger before PIT entry is satisfied More... | |
signal::Signal< Forwarder, pit::Entry > | beforeExpirePendingInterest |
trigger before PIT entry expires More... | |
signal::Signal< Forwarder, Interest, Data > | afterCsHit |
Signals when the incoming interest pipeline gets a hit from the content store. More... | |
signal::Signal< Forwarder, Interest > | afterCsMiss |
Signals when the incoming interest pipeline gets a miss from the content store. More... | |
Friends | |
class | fw::Strategy |
Main class of NFD's forwarding engine.
Forwarder owns all tables and implements the forwarding pipelines.
Definition at line 51 of file forwarder.hpp.
|
explicit |
Definition at line 49 of file forwarder.cpp.
References nfd::FaceTable::addReserved(), nfd::FaceTable::afterAdd, nfd::fib::Fib::afterNewNextHop, nfd::face::Face::afterReceiveData, nfd::face::Face::afterReceiveInterest, nfd::face::Face::afterReceiveNack, nfd::FaceTable::beforeRemove, nfd::cleanupOnFaceRemoval(), nfd::face::FACEID_CONTENT_STORE, nfd::getDefaultStrategyName(), nfd::face::Face::onDroppedInterest, nfd::strategy_choice::StrategyChoice::setDefaultStrategy(), startProcessData(), startProcessInterest(), startProcessNack(), and startProcessNewNextHop().
|
default |
|
inline |
Definition at line 61 of file forwarder.hpp.
|
inline |
Definition at line 67 of file forwarder.hpp.
|
inline |
Definition at line 73 of file forwarder.hpp.
References nonstd::optional_lite::std11::move().
Referenced by nfd::TablesConfigSection::ensureConfigured().
|
inline |
start incoming Interest processing
ingress | face on which Interest is received and endpoint of the sender |
interest | the incoming Interest, must be well-formed and created with make_shared |
Definition at line 85 of file forwarder.hpp.
Referenced by Forwarder().
|
inline |
start incoming Data processing
ingress | face on which Data is received and endpoint of the sender |
data | the incoming Data, must be well-formed and created with make_shared |
Definition at line 95 of file forwarder.hpp.
Referenced by Forwarder().
|
inline |
start incoming Nack processing
ingress | face on which Nack is received and endpoint of the sender |
nack | the incoming Nack, must be well-formed |
Definition at line 105 of file forwarder.hpp.
Referenced by Forwarder().
|
inline |
start new nexthop processing
prefix | the prefix of the FibEntry containing the new nexthop |
nextHop | the new NextHop |
Definition at line 115 of file forwarder.hpp.
Referenced by Forwarder().
|
inline |
Definition at line 121 of file forwarder.hpp.
|
inline |
Definition at line 127 of file forwarder.hpp.
Referenced by nfd::fw::Strategy::lookupFib().
|
inline |
Definition at line 133 of file forwarder.hpp.
|
inline |
Definition at line 139 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured().
|
inline |
Definition at line 145 of file forwarder.hpp.
|
inline |
Definition at line 151 of file forwarder.hpp.
|
inline |
Definition at line 157 of file forwarder.hpp.
|
inline |
Definition at line 163 of file forwarder.hpp.
Referenced by nfd::fw::Strategy::lookupFib().
|
friend |
Definition at line 297 of file forwarder.hpp.
signal::Signal<Forwarder, pit::Entry, Face, Data> nfd::Forwarder::beforeSatisfyInterest |
trigger before PIT entry is satisfied
Definition at line 172 of file forwarder.hpp.
signal::Signal<Forwarder, pit::Entry> nfd::Forwarder::beforeExpirePendingInterest |
trigger before PIT entry expires
Definition at line 177 of file forwarder.hpp.
signal::Signal<Forwarder, Interest, Data> nfd::Forwarder::afterCsHit |
Signals when the incoming interest pipeline gets a hit from the content store.
Definition at line 181 of file forwarder.hpp.
signal::Signal<Forwarder, Interest> nfd::Forwarder::afterCsMiss |
Signals when the incoming interest pipeline gets a miss from the content store.
Definition at line 185 of file forwarder.hpp.