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 for transport, and uses the passed 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
a callback on dataset retrieval failure
Definition at line 64 of file controller.hpp.
◆ Controller()
construct a Controller that uses face for transport, and uses the passed KeyChain to sign commands
Definition at line 39 of file controller.cpp.
◆ ~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