a collection of common functions shared by all NFD managers and RIB manager, such as communicating with the dispatcher and command validator.
More...
#include <core/manager-base.hpp>
|
typedef function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters ¶meters, const ndn::mgmt::CommandContinuation done)> | ControlCommandHandler |
|
a collection of common functions shared by all NFD managers and RIB manager, such as communicating with the dispatcher and command validator.
Definition at line 48 of file manager-base.hpp.
typedef function<void(const ControlCommand& command, const Name& prefix, const Interest& interest, const ControlParameters& parameters, const ndn::mgmt::CommandContinuation done)> nfd::ManagerBase::ControlCommandHandler |
|
protected |
nfd::ManagerBase::ManagerBase |
( |
Dispatcher & |
dispatcher, |
|
|
const std::string & |
module |
|
) |
| |
nfd::ManagerBase::~ManagerBase |
( |
| ) |
|
|
virtualdefault |
void nfd::ManagerBase::extractRequester |
( |
const Interest & |
interest, |
|
|
ndn::mgmt::AcceptContinuation |
accept |
|
) |
| |
|
protected |
extract a requester from a ControlCommand request
This is called after the signature is validated.
- Parameters
-
interest | a request for ControlCommand |
accept | callback of successful validation, take the requester string as a argument |
Definition at line 57 of file manager-base.cpp.
const std::string& nfd::ManagerBase::getModule |
( |
| ) |
const |
|
inline |
template<typename Command >
void nfd::ManagerBase::registerCommandHandler |
( |
const std::string & |
verb, |
|
|
const ControlCommandHandler & |
handler |
|
) |
| |
|
inlineprotected |
ndn::mgmt::PostNotification nfd::ManagerBase::registerNotificationStream |
( |
const std::string & |
verb | ) |
|
|
protected |
void nfd::ManagerBase::registerStatusDatasetHandler |
( |
const std::string & |
verb, |
|
|
const ndn::mgmt::StatusDatasetHandler & |
handler |
|
) |
| |
|
protected |