NFD Management protocol client.
More...
#include <ndn-cxx/mgmt/nfd/controller.hpp>
|
| Controller (Face &face, KeyChain &keyChain, security::Validator &validator=security::getAcceptAllValidator()) |
| Construct a Controller that uses face as transport and keyChain to sign commands. More...
|
|
| ~Controller () |
|
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 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 Command > |
void | start (const ControlParameters ¶meters, const CommandSucceedCallback &onSuccess, const CommandFailCallback &onFailure, const CommandOptions &options=CommandOptions()) |
| Start command execution. More...
|
|
◆ CommandFailCallback
◆ CommandSucceedCallback
◆ DatasetFailCallback
Callback on dataset retrieval failure.
Definition at line 67 of file controller.hpp.
◆ Controller()
◆ ~Controller()
ndn::nfd::Controller::~Controller |
( |
| ) |
|
◆ fetch() [1/2]
template<typename Dataset , typename ParamType = typename Dataset::ParamType>
◆ fetch() [2/2]
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 |
◆ start()
template<typename Command >
◆ ERROR_LBOUND
const uint32_t ndn::nfd::Controller::ERROR_LBOUND = 400 |
|
static |
◆ ERROR_NACK
const uint32_t ndn::nfd::Controller::ERROR_NACK = 10800 |
|
static |
◆ ERROR_SERVER
const uint32_t ndn::nfd::Controller::ERROR_SERVER = 500 |
|
static |
◆ ERROR_TIMEOUT
const uint32_t ndn::nfd::Controller::ERROR_TIMEOUT = 10060 |
|
static |
◆ ERROR_VALIDATION
const uint32_t ndn::nfd::Controller::ERROR_VALIDATION = 10021 |
|
static |
Error code for response validation failure.
Definition at line 163 of file controller.hpp.
◆ m_face
Face& ndn::nfd::Controller::m_face |
|
protected |
◆ m_fetchers
◆ m_keyChain
KeyChain& ndn::nfd::Controller::m_keyChain |
|
protected |
◆ m_signer
◆ m_validator