#include <face-manager.hpp>
Classes | |
class | Error |
Public Member Functions | |
FaceManager (FaceTable &faceTable, shared_ptr< InternalFace > face, ndn::KeyChain &keyChain) | |
virtual | ~FaceManager () |
void | setConfigFile (ConfigFile &configFile) |
Subscribe to a face management section(s) for the config file. More... | |
void | onFaceRequest (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 51 of file face-manager.hpp.
nfd::FaceManager::FaceManager | ( | FaceTable & | faceTable, |
shared_ptr< InternalFace > | face, | ||
ndn::KeyChain & | keyChain | ||
) |
FaceManager::Error | if localPort is an invalid port number |
Definition at line 108 of file face-manager.cpp.
References onFaceRequest().
Referenced by nfd::FaceManager::Error::Error().
|
virtual |
Definition at line 130 of file face-manager.cpp.
Referenced by nfd::FaceManager::Error::Error().
void nfd::FaceManager::setConfigFile | ( | ConfigFile & | configFile | ) |
Subscribe to a face management section(s) for the config file.
Definition at line 136 of file face-manager.cpp.
References nfd::ConfigFile::addSectionHandler().
Referenced by nfd::FaceManager::Error::Error().
void nfd::FaceManager::onFaceRequest | ( | const Interest & | request | ) |
Definition at line 152 of file face-manager.cpp.
References nfd::FaceTable::add(), ndn::Name::at(), nfd::ManagerBase::extractParameters(), ndn::nfd::FACE_EVENT_CREATED, ndn::nfd::FACE_EVENT_DESTROYED, ndn::nfd::FACE_PERSISTENCY_PERSISTENT, nfd::FaceTable::get(), ndn::nfd::ControlParameters::getFaceId(), ndn::Interest::getIncomingFaceId(), ndn::nfd::ControlParameters::getLocalControlFeature(), ndn::Interest::getName(), ndn::util::FaceUri::getScheme(), ndn::nfd::ControlParameters::getUri(), ndn::util::FaceUri::isCanonical(), ndn::Name::isPrefixOf(), nfd::ManagerBase::m_face, nfd::ManagerBase::m_keyChain, NFD_LOG_DEBUG, NFD_LOG_ERROR, NFD_LOG_TRACE, nfd::ManagerBase::onCommandValidationFailed(), ndn::util::FaceUri::parse(), nfd::SegmentPublisher< FaceBase >::publish(), nfd::ManagerBase::sendNack(), nfd::ManagerBase::sendResponse(), ndn::nfd::ControlParameters::setFaceId(), ndn::nfd::FaceEventNotification::setKind(), ndn::nfd::ControlParameters::setUri(), ndn::Name::size(), nfd::ManagerBase::validate(), nfd::ManagerBase::validateParameters(), ndn::nfd::FaceQueryFilter::wireDecode(), and ndn::nfd::ControlParameters::wireEncode().
Referenced by nfd::FaceManager::Error::Error(), and FaceManager().