NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::FaceManager Class Referencefinal

Implements the Face Management of NFD Management Protocol. More...

#include <face-manager.hpp>

Inheritance diagram for nfd::FaceManager:
Collaboration diagram for nfd::FaceManager:

Public Member Functions

 FaceManager (FaceSystem &faceSystem, Dispatcher &dispatcher, CommandAuthenticator &authenticator)
 
- Public Member Functions inherited from nfd::ManagerBase
virtual ~ManagerBase ()
 
const std::string & getModule () const
 

Additional Inherited Members

- Protected Member Functions inherited from nfd::ManagerBase
 ManagerBase (const std::string &module, Dispatcher &dispatcher)
 
 ManagerBase (const std::string &module, Dispatcher &dispatcher, CommandAuthenticator &authenticator)
 
template<typename Command >
void registerCommandHandler (const std::string &verb, const ControlCommandHandler &handler)
 
void registerStatusDatasetHandler (const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler)
 
ndn::mgmt::PostNotification registerNotificationStream (const std::string &verb)
 
PartialName makeRelPrefix (const std::string &verb)
 Generates the relative prefix for a handler by appending the verb name to the module name. More...
 
- Static Protected Member Functions inherited from nfd::ManagerBase
static bool validateParameters (const ControlCommand &command, const ndn::mgmt::ControlParameters &parameters)
 Validates the parameters for a given command. More...
 
static void handleCommand (shared_ptr< ControlCommand > command, const ControlCommandHandler &handler, const Name &prefix, const Interest &interest, const ndn::mgmt::ControlParameters &params, const ndn::mgmt::CommandContinuation &done)
 Handles a control command. More...
 
- Protected Attributes inherited from nfd::ManagerBase
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED __pad0__: using ControlCommandHandler = std::function<void(const ControlCommand& command
 
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Nameprefix
 
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interestinterest
 
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interest const ControlParametersparameters
 
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interest const ControlParameters const ndn::mgmt::CommandContinuation done
 
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED __pad1__: static void extractRequester(const Interest& interest
 
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const ndn::mgmt::AcceptContinuationaccept
 
NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE __pad2__: virtual ndn::mgmt::Authorization makeAuthorization(const std::string& verb)
 

Detailed Description

Implements the Face Management of NFD Management Protocol.

See also
https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt

Definition at line 39 of file face-manager.hpp.

Constructor & Destructor Documentation

◆ FaceManager()

nfd::FaceManager::FaceManager ( FaceSystem faceSystem,
Dispatcher dispatcher,
CommandAuthenticator authenticator 
)

Definition at line 43 of file face-manager.cpp.

References nfd::FaceTable::afterAdd, nfd::face::FaceParams::baseCongestionMarkingInterval, nfd::FaceTable::beforeRemove, ndn::nfd::BIT_CONGESTION_MARKING_ENABLED, ndn::nfd::BIT_LOCAL_FIELDS_ENABLED, ndn::nfd::BIT_LP_RELIABILITY_ENABLED, nfd::face::ProtocolFactory::createFace(), nfd::face::FaceParams::defaultCongestionThreshold, nfd::ManagerBase::done, Face, ndn::nfd::FACE_EVENT_CREATED, ndn::nfd::FACE_EVENT_DESTROYED, ndn::nfd::ControlParameters::getBaseCongestionMarkingInterval(), ndn::nfd::ControlParameters::getDefaultCongestionThreshold(), ndn::nfd::ControlParameters::getFacePersistency(), nfd::face::FaceSystem::getFactoryByScheme(), ndn::nfd::ControlParameters::getFlagBit(), ndn::nfd::ControlParameters::getLocalUri(), ndn::nfd::ControlParameters::getMtu(), ndn::FaceUri::getScheme(), ndn::nfd::ControlParameters::getUri(), ndn::nfd::ControlParameters::hasBaseCongestionMarkingInterval(), ndn::nfd::ControlParameters::hasDefaultCongestionThreshold(), ndn::nfd::ControlParameters::hasFlagBit(), ndn::nfd::ControlParameters::hasLocalUri(), ndn::nfd::ControlParameters::hasMtu(), ndn::FaceUri::isCanonical(), nfd::face::FaceParams::mtu, NFD_LOG_DEBUG, NFD_LOG_ERROR, NFD_LOG_TRACE, nfd::ManagerBase::parameters, ndn::FaceUri::parse(), nfd::face::FaceParams::persistency, nfd::ManagerBase::registerNotificationStream(), nfd::ManagerBase::registerStatusDatasetHandler(), ndn::FaceUri::toString(), nfd::face::FaceParams::wantCongestionMarking, nfd::face::FaceParams::wantLocalFields, and nfd::face::FaceParams::wantLpReliability.


The documentation for this class was generated from the following files: