Serve commands and datasets in NFD RIB management protocol. More...
#include <rib/rib-manager.hpp>
Classes | |
class | Error |
Public Member Functions | |
RibManager (Rib &rib, ndn::Face &face, ndn::nfd::Controller &nfdController, Dispatcher &dispatcher) | |
void | applyLocalhostConfig (const ConfigSection §ion, const std::string &filename) |
Apply localhost_security configuration. More... | |
void | disableLocalhop () |
Disallow accepting commands on /localhop/nfd/rib prefix. More... | |
void | enableLocalFields () |
Enable NDNLP IncomingFaceId field in order to support self-registration commands. More... | |
void | enableLocalhop (const ConfigSection §ion, const std::string &filename) |
Apply localhop_security configuration and allow accepting commands on /localhop/nfd/rib prefix. More... | |
const std::string & | getModule () const |
void | registerWithNfd () |
Start accepting commands and dataset requests. More... | |
Protected Types | |
using | ControlCommandHandler = std::function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters ¶meters, const ndn::mgmt::CommandContinuation done)> |
Protected Member Functions | |
void | extractRequester (const Interest &interest, ndn::mgmt::AcceptContinuation accept) |
extract a 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) |
Serve commands and datasets in NFD RIB management protocol.
Definition at line 48 of file rib-manager.hpp.
|
protectedinherited |
Definition at line 78 of file manager-base.hpp.
nfd::rib::RibManager::RibManager | ( | Rib & | rib, |
ndn::Face & | face, | ||
ndn::nfd::Controller & | nfdController, | ||
Dispatcher & | dispatcher | ||
) |
Definition at line 49 of file rib-manager.cpp.
void nfd::rib::RibManager::applyLocalhostConfig | ( | const ConfigSection & | section, |
const std::string & | filename | ||
) |
Apply localhost_security configuration.
Definition at line 68 of file rib-manager.cpp.
void nfd::rib::RibManager::disableLocalhop | ( | ) |
Disallow accepting commands on /localhop/nfd/rib prefix.
Definition at line 81 of file rib-manager.cpp.
void nfd::rib::RibManager::enableLocalFields | ( | ) |
Enable NDNLP IncomingFaceId field in order to support self-registration commands.
Definition at line 103 of file rib-manager.cpp.
void nfd::rib::RibManager::enableLocalhop | ( | const ConfigSection & | section, |
const std::string & | filename | ||
) |
Apply localhop_security configuration and allow accepting commands on /localhop/nfd/rib prefix.
Definition at line 74 of file rib-manager.cpp.
|
protectedinherited |
extract a requester from a ControlCommand request
This is called after the signature is validated.
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.
|
inlineinherited |
Definition at line 68 of file manager-base.hpp.
|
inlineprotectedinherited |
Definition at line 156 of file manager-base.hpp.
|
protectedinherited |
Definition at line 51 of file manager-base.cpp.
|
protectedinherited |
Definition at line 42 of file manager-base.cpp.
void nfd::rib::RibManager::registerWithNfd | ( | ) |
Start accepting commands and dataset requests.
Definition at line 87 of file rib-manager.cpp.