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 39 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, getFaceTable(), nfd::fw::installStrategies(), startProcessData(), startProcessInterest(), startProcessNack(), and ~Forwarder().
|
default |
Referenced by Forwarder().
|
inline |
Definition at line 63 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
|
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.
Referenced by nfd::fw::Strategy::getFace().
|
inline |
|
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 created with make_shared |
Definition at line 73 of file forwarder.cpp.
References nfd::face::Face::getId(), ndn::Interest::getLink(), ndn::Interest::getName(), ndn::Interest::hasLink(), and NFD_LOG_DEBUG.
Referenced by Forwarder().
start incoming Data processing
face | face on which Data is received |
data | the incoming Data, must be created with make_shared |
Definition at line 92 of file forwarder.cpp.
Referenced by Forwarder().
start incoming Nack processing
face | face on which Nack is received |
nack | the incoming Nack, must be created with make_shared |
Definition at line 101 of file forwarder.cpp.
References nfd::fw::Strategy::afterReceiveInterest(), nfd::fw::Strategy::afterReceiveNack(), nfd::fw::Strategy::beforeExpirePendingInterest(), beforeExpirePendingInterest, nfd::fw::Strategy::beforeSatisfyInterest(), beforeSatisfyInterest, nfd::fw::CACHE, nfd::fw::DUPLICATE_NONCE_NONE, nfd::pit::Pit::erase(), ndn::nfd::FACE_SCOPE_NON_LOCAL, nfd::face::FACEID_CONTENT_STORE, nfd::pit::Pit::find(), nfd::cs::Cs::find(), nfd::pit::Pit::findAllDataMatches(), nfd::fw::findDuplicateNonce(), nfd::FaceTable::get(), ndn::Data::getFreshnessPeriod(), nfd::face::Face::getId(), ndn::lp::Nack::getInterest(), ndn::Interest::getLink(), nfd::face::Face::getLinkType(), ndn::Data::getName(), ndn::Interest::getName(), ndn::Interest::getNonce(), ndn::lp::NackHeader::getReason(), ndn::lp::Nack::getReason(), nfd::face::Face::getScope(), ndn::TagHost::getTag(), nfd::DeadNonceList::has(), ndn::Interest::hasLink(), nfd::fw::hasPendingOutRecords(), nfd::cs::Cs::insert(), nfd::pit::Pit::insert(), nfd::face::INVALID_FACEID, ndn::Name::isPrefixOf(), ndn::nfd::LINK_TYPE_MULTI_ACCESS, nfd::scope_prefix::LOCALHOST, NFD_LOG_DEBUG, NFD_LOG_ERROR, NFD_LOG_WARN, nfd::ForwarderCounters::nInData, nfd::ForwarderCounters::nInInterests, nfd::ForwarderCounters::nInNacks, nfd::ForwarderCounters::nOutData, nfd::ForwarderCounters::nOutInterests, nfd::ForwarderCounters::nOutNacks, ndn::time::steady_clock::now(), nfd::face::Face::sendData(), nfd::face::Face::sendInterest(), nfd::face::Face::sendNack(), ndn::lp::Nack::setHeader(), and ndn::TagHost::setTag().
Referenced by Forwarder().
|
inline |
Definition at line 131 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 137 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and nfd::fw::Strategy::lookupFib().
|
inline |
Definition at line 143 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 149 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured(), and nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 155 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 161 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured(), and nfd::fw::installStrategies().
|
inline |
Definition at line 167 of file forwarder.hpp.
|
inline |
Definition at line 173 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured(), and nfd::fw::Strategy::lookupFib().
|
inline |
Definition at line 180 of file forwarder.hpp.
|
friend |
Definition at line 318 of file forwarder.hpp.
signal::Signal<Forwarder, pit::Entry, Face, Data> nfd::Forwarder::beforeSatisfyInterest |
trigger before PIT entry is satisfied
Definition at line 189 of file forwarder.hpp.
Referenced by startProcessNack().
signal::Signal<Forwarder, pit::Entry> nfd::Forwarder::beforeExpirePendingInterest |
trigger before PIT entry expires
Definition at line 194 of file forwarder.hpp.
Referenced by startProcessNack().