NFD Management protocol client.
More...
#include <ndn-cxx/mgmt/nfd/controller.hpp>
|
| Controller (Face &face, KeyChain &keyChain, security::v2::Validator &validator=security::getAcceptAllValidator()) |
| construct a Controller that uses face for transport, and uses the passed KeyChain to sign commands More...
|
|
| ~Controller () |
|
template<typename Dataset > |
std::enable_if_t< std::is_default_constructible< Dataset >::value > | fetch (const std::function< void(typename Dataset::ResultType)> &onSuccess, const DatasetFailCallback &onFailure, const CommandOptions &options=CommandOptions()) |
| start dataset fetching More...
|
|
template<typename Dataset , typename ParamType = typename Dataset::ParamType> |
void | fetch (const ParamType ¶m, const std::function< void(typename Dataset::ResultType)> &onSuccess, const DatasetFailCallback &onFailure, const CommandOptions &options=CommandOptions()) |
| start dataset fetching More...
|
|
template<typename Command > |
void | start (const ControlParameters ¶meters, const CommandSucceedCallback &onSuccess, const CommandFailCallback &onFailure, const CommandOptions &options=CommandOptions()) |
| start command execution More...
|
|
a callback on dataset retrieval failure
Definition at line 64 of file controller.hpp.
ndn::nfd::Controller::Controller |
( |
Face & |
face, |
|
|
KeyChain & |
keyChain, |
|
|
security::v2::Validator & |
validator = security::getAcceptAllValidator() |
|
) |
| |
construct a Controller that uses face for transport, and uses the passed KeyChain to sign commands
Definition at line 39 of file controller.cpp.
ndn::nfd::Controller::~Controller |
( |
| ) |
|
template<typename Dataset >
std::enable_if_t<std::is_default_constructible<Dataset>::value> ndn::nfd::Controller::fetch |
( |
const std::function< void(typename Dataset::ResultType)> & |
onSuccess, |
|
|
const DatasetFailCallback & |
onFailure, |
|
|
const CommandOptions & |
options = CommandOptions() |
|
) |
| |
|
inline |
template<typename Dataset , typename ParamType = typename Dataset::ParamType>
template<typename Command >
const uint32_t ndn::nfd::Controller::ERROR_LBOUND = 400 |
|
static |
const uint32_t ndn::nfd::Controller::ERROR_NACK = 10800 |
|
static |
const uint32_t ndn::nfd::Controller::ERROR_SERVER = 500 |
|
static |
const uint32_t ndn::nfd::Controller::ERROR_TIMEOUT = 10060 |
|
static |
const uint32_t ndn::nfd::Controller::ERROR_VALIDATION = 10021 |
|
static |
error code for response validation failure
Definition at line 163 of file controller.hpp.
Face& ndn::nfd::Controller::m_face |
|
protected |
KeyChain& ndn::nfd::Controller::m_keyChain |
|
protected |