main class of NFD More...
#include <forwarder.hpp>
Public Member Functions | |
Forwarder () | |
~Forwarder () | |
const ForwarderCounters & | getCounters () const |
FaceTable & | getFaceTable () |
Face * | getFace (FaceId id) const |
get existing Face More... | |
void | addFace (shared_ptr< Face > face) |
add new Face More... | |
fw::UnsolicitedDataPolicy & | getUnsolicitedDataPolicy () const |
void | setUnsolicitedDataPolicy (unique_ptr< fw::UnsolicitedDataPolicy > policy) |
void | startProcessInterest (Face &face, const Interest &interest) |
start incoming Interest processing More... | |
void | startProcessData (Face &face, const Data &data) |
start incoming Data processing More... | |
void | startProcessNack (Face &face, const lp::Nack &nack) |
start incoming Nack processing More... | |
NameTree & | getNameTree () |
Fib & | getFib () |
Pit & | getPit () |
Cs & | getCs () |
Measurements & | getMeasurements () |
StrategyChoice & | getStrategyChoice () |
DeadNonceList & | getDeadNonceList () |
NetworkRegionTable & | getNetworkRegionTable () |
void | setCsFromNdnSim (ns3::Ptr< ns3::ndn::ContentStore > cs) |
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... | |
Friends | |
class | fw::Strategy |
main class of NFD
Forwarder owns all faces and tables, and implements forwarding pipelines.
Definition at line 54 of file forwarder.hpp.
nfd::Forwarder::Forwarder | ( | ) |
Definition at line 48 of file forwarder.cpp.
References nfd::FaceTable::addReserved(), nfd::FaceTable::afterAdd, nfd::face::Face::afterReceiveData, nfd::face::Face::afterReceiveInterest, nfd::face::Face::afterReceiveNack, nfd::FaceTable::beforeRemove, nfd::cleanupOnFaceRemoval(), nfd::face::FACEID_CONTENT_STORE, nfd::getDefaultStrategyName(), getFaceTable(), nfd::face::Face::onDroppedInterest, nfd::strategy_choice::StrategyChoice::setDefaultStrategy(), startProcessData(), startProcessInterest(), and startProcessNack().
|
default |
|
inline |
Definition at line 63 of file forwarder.hpp.
|
inline |
Definition at line 70 of file forwarder.hpp.
Referenced by Forwarder(), and nfd::fw::Strategy::getFaceTable().
|
inline |
get existing Face
shortcut to .getFaceTable().get(face)
Definition at line 80 of file forwarder.hpp.
References nfd::FaceTable::get().
Referenced by nfd::fw::Strategy::getFace().
|
inline |
add new Face
shortcut to .getFaceTable().add(face)
Definition at line 90 of file forwarder.hpp.
References nfd::FaceTable::add().
|
inline |
Definition at line 96 of file forwarder.hpp.
|
inline |
Definition at line 102 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured().
start incoming Interest processing
face | face on which Interest is received |
interest | the incoming Interest, must be well-formed and created with make_shared |
Definition at line 114 of file forwarder.hpp.
Referenced by Forwarder().
start incoming Data processing
face | face on which Data is received |
data | the incoming Data, must be well-formed and created with make_shared |
Definition at line 124 of file forwarder.hpp.
Referenced by Forwarder().
start incoming Nack processing
face | face on which Nack is received |
nack | the incoming Nack, must be well-formed |
Definition at line 134 of file forwarder.hpp.
Referenced by Forwarder().
|
inline |
Definition at line 140 of file forwarder.hpp.
|
inline |
Definition at line 146 of file forwarder.hpp.
Referenced by nfd::fw::Strategy::lookupFib().
|
inline |
Definition at line 152 of file forwarder.hpp.
|
inline |
Definition at line 158 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured().
|
inline |
Definition at line 164 of file forwarder.hpp.
|
inline |
Definition at line 170 of file forwarder.hpp.
|
inline |
Definition at line 176 of file forwarder.hpp.
|
inline |
Definition at line 182 of file forwarder.hpp.
Referenced by nfd::fw::Strategy::lookupFib().
|
inline |
Definition at line 189 of file forwarder.hpp.
|
friend |
Definition at line 311 of file forwarder.hpp.
signal::Signal<Forwarder, pit::Entry, Face, Data> nfd::Forwarder::beforeSatisfyInterest |
trigger before PIT entry is satisfied
Definition at line 198 of file forwarder.hpp.
signal::Signal<Forwarder, pit::Entry> nfd::Forwarder::beforeExpirePendingInterest |
trigger before PIT entry expires
Definition at line 203 of file forwarder.hpp.