#include <fib-manager.hpp>
Public Member Functions | |
FibManager (Fib &fib, function< shared_ptr< Face >(FaceId)> getFace, shared_ptr< InternalFace > face, ndn::KeyChain &keyChain) | |
virtual | ~FibManager () |
void | onFibRequest (const Interest &request) |
Public Member Functions inherited from nfd::ManagerBase | |
ManagerBase (shared_ptr< InternalFace > face, const std::string &privilege, ndn::KeyChain &keyChain) | |
virtual | ~ManagerBase () |
void | onCommandValidationFailed (const shared_ptr< const Interest > &command, const std::string &error) |
Additional Inherited Members | |
Protected Member Functions inherited from nfd::ManagerBase | |
void | setResponse (ControlResponse &response, uint32_t code, const std::string &text) |
void | setResponse (ControlResponse &response, uint32_t code, const std::string &text, const Block &body) |
void | sendResponse (const Name &name, const ControlResponse &response) |
void | sendResponse (const Name &name, uint32_t code, const std::string &text) |
void | sendResponse (const Name &name, uint32_t code, const std::string &text, const Block &body) |
void | sendNack (const Name &name) |
virtual bool | validateParameters (const ControlCommand &command, ControlParameters ¶meters) |
void | addInterestRule (const std::string ®ex, const ndn::IdentityCertificate &certificate) |
void | addInterestRule (const std::string ®ex, const Name &keyName, const ndn::PublicKey &publicKey) |
void | validate (const Interest &interest, const ndn::OnInterestValidated &onValidated, const ndn::OnInterestValidationFailed &onValidationFailed) |
Static Protected Member Functions inherited from nfd::ManagerBase | |
static bool | extractParameters (const Name::Component ¶meterComponent, ControlParameters &extractedParameters) |
Protected Attributes inherited from nfd::ManagerBase | |
shared_ptr< InternalFace > | m_face |
ndn::KeyChain & | m_keyChain |
Definition at line 41 of file fib-manager.hpp.
nfd::FibManager::FibManager | ( | Fib & | fib, |
function< shared_ptr< Face >(FaceId)> | getFace, | ||
shared_ptr< InternalFace > | face, | ||
ndn::KeyChain & | keyChain | ||
) |
Definition at line 78 of file fib-manager.cpp.
References onFibRequest().
|
virtual |
Definition at line 97 of file fib-manager.cpp.
void nfd::FibManager::onFibRequest | ( | const Interest & | request | ) |
Definition at line 103 of file fib-manager.cpp.
References ndn::Name::at(), nfd::Fib::erase(), nfd::ManagerBase::extractParameters(), nfd::Fib::findExactMatch(), ndn::nfd::ControlParameters::getCost(), ndn::nfd::ControlParameters::getFaceId(), ndn::nfd::ControlParameters::getName(), ndn::Interest::getName(), ndn::nfd::ControlParameters::hasFaceId(), nfd::Fib::insert(), ndn::Name::isPrefixOf(), NFD_LOG_DEBUG, NFD_LOG_TRACE, nfd::ManagerBase::onCommandValidationFailed(), nfd::SegmentPublisher< FaceBase >::publish(), nfd::ManagerBase::sendResponse(), ndn::nfd::ControlParameters::setFaceId(), nfd::ManagerBase::setResponse(), ndn::Name::size(), nfd::ManagerBase::validate(), nfd::ManagerBase::validateParameters(), and ndn::nfd::ControlParameters::wireEncode().
Referenced by FibManager().