main class of NFD More...
#include <forwarder.hpp>
Public Member Functions | |
Forwarder () | |
~Forwarder () | |
const ForwarderCounters & | getCounters () const |
FaceTable & | getFaceTable () |
shared_ptr< Face > | getFace (FaceId id) const |
get existing Face More... | |
void | addFace (shared_ptr< Face > face) |
add new Face More... | |
void | onInterest (Face &face, const Interest &interest) |
void | onData (Face &face, const Data &data) |
NameTree & | getNameTree () |
Fib & | getFib () |
Pit & | getPit () |
Cs & | getCs () |
Measurements & | getMeasurements () |
StrategyChoice & | getStrategyChoice () |
DeadNonceList & | getDeadNonceList () |
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 44 of file forwarder.cpp.
References nfd::FaceTable::addReserved(), nfd::FACEID_CONTENT_STORE, getFaceTable(), and nfd::fw::installStrategies().
nfd::Forwarder::~Forwarder | ( | ) |
Definition at line 56 of file forwarder.cpp.
References beforeSatisfyInterest, nfd::pit::DUPLICATE_NONCE_NONE, nfd::FACEID_CONTENT_STORE, nfd::Fib::findLongestPrefixMatch(), ndn::Data::getFreshnessPeriod(), nfd::Face::getId(), ndn::Interest::getName(), nfd::NetworkLayerCounters::getNInInterests(), ndn::Interest::getNonce(), nfd::DeadNonceList::has(), nfd::Pit::insert(), nfd::Face::isLocal(), ndn::Name::isPrefixOf(), and NFD_LOG_DEBUG.
|
inline |
Definition at line 242 of file forwarder.hpp.
Referenced by nfd::StatusServer::StatusServer().
|
inline |
Definition at line 248 of file forwarder.hpp.
Referenced by Forwarder(), and nfd::fw::Strategy::getFaceTable().
get existing Face
shortcut to .getFaceTable().get(face)
Definition at line 254 of file forwarder.hpp.
Referenced by nfd::fw::Strategy::getFace(), and nfd::ignoreRibAndLogSections().
|
inline |
Definition at line 266 of file forwarder.hpp.
Referenced by nfd::FaceTable::addReserved().
Definition at line 272 of file forwarder.hpp.
Referenced by nfd::FaceTable::addReserved().
|
inline |
Definition at line 278 of file forwarder.hpp.
Referenced by nfd::StatusServer::StatusServer().
|
inline |
Definition at line 284 of file forwarder.hpp.
Referenced by nfd::FaceTable::addReserved(), and nfd::StatusServer::StatusServer().
|
inline |
Definition at line 290 of file forwarder.hpp.
Referenced by nfd::StatusServer::StatusServer().
|
inline |
Definition at line 296 of file forwarder.hpp.
Referenced by nfd::StatusServer::StatusServer().
|
inline |
Definition at line 302 of file forwarder.hpp.
Referenced by nfd::StatusServer::StatusServer().
|
inline |
Definition at line 308 of file forwarder.hpp.
Referenced by nfd::fw::installStrategies().
|
inline |
Definition at line 314 of file forwarder.hpp.
|
inline |
Definition at line 320 of file forwarder.hpp.
|
friend |
Definition at line 238 of file forwarder.hpp.
signal::Signal<Forwarder, pit::Entry, Face, Data> nfd::Forwarder::beforeSatisfyInterest |
trigger before PIT entry is satisfied
Definition at line 119 of file forwarder.hpp.
Referenced by nfd::compare_pickInterest(), and ~Forwarder().
signal::Signal<Forwarder, pit::Entry> nfd::Forwarder::beforeExpirePendingInterest |
trigger before PIT entry expires
Definition at line 124 of file forwarder.hpp.
Referenced by nfd::compare_pickInterest().