nfd::FaceManager Class Reference

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

#include <daemon/mgmt/face-manager.hpp>

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

Public Member Functions

 FaceManager (FaceSystem &faceSystem, Dispatcher &dispatcher, CommandAuthenticator &authenticator)
const std::string & getModule () const

Protected Types

using ControlCommandHandler = std::function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters &parameters, const ndn::mgmt::CommandContinuation done)>

Protected Member Functions

void extractRequester (const Interest &interest, ndn::mgmt::AcceptContinuation accept)
 Extracts the requester from a ControlCommand request. More...
template<typename Command >
void registerCommandHandler (const std::string &verb, const ControlCommandHandler &handler)
ndn::mgmt::PostNotification registerNotificationStream (const std::string &verb)
void registerStatusDatasetHandler (const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler)

Detailed Description

Implements the Face Management of NFD Management Protocol.

See also

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

Member Typedef Documentation

using nfd::ManagerBase::ControlCommandHandler = std::function<void(const ControlCommand& command, const Name& prefix, const Interest& interest, const ControlParameters& parameters, const ndn::mgmt::CommandContinuation done)>

Definition at line 79 of file manager-base.hpp.

Constructor & Destructor Documentation

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

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

Member Function Documentation

void nfd::ManagerBase::extractRequester ( const Interest &  interest,
ndn::mgmt::AcceptContinuation  accept 

Extracts the requester from a ControlCommand request.

This is called after the signature has been validated.

interesta request for ControlCommand
acceptcallback of successful validation, takes the requester string as a argument

Definition at line 62 of file manager-base.cpp.

const std::string& nfd::ManagerBase::getModule ( ) const

Definition at line 60 of file manager-base.hpp.

template<typename Command >
void nfd::ManagerBase::registerCommandHandler ( const std::string &  verb,
const ControlCommandHandler handler 

Definition at line 152 of file manager-base.hpp.

ndn::mgmt::PostNotification nfd::ManagerBase::registerNotificationStream ( const std::string &  verb)

Definition at line 56 of file manager-base.cpp.

void nfd::ManagerBase::registerStatusDatasetHandler ( const std::string &  verb,
const ndn::mgmt::StatusDatasetHandler &  handler 

Definition at line 47 of file manager-base.cpp.