NFD Management protocol client. More...
#include <ndn-cxx/mgmt/nfd/controller.hpp>
Public Types | |
enum | : uint32_t { ERROR_LBOUND = 400 , ERROR_SERVER = 500 , ERROR_TIMEOUT = 10060 , ERROR_NACK = 10800 , ERROR_VALIDATION = 10021 } |
Public Member Functions | |
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 > | |
std::enable_if_t< std::is_default_constructible_v< Dataset > > | fetch (const DatasetSuccessCallback< Dataset > &onSuccess, const DatasetFailureCallback &onFailure, const CommandOptions &options={}) |
Start dataset fetching. More... | |
template<typename Dataset , typename ParamType > | |
void | fetch (ParamType &¶m, const DatasetSuccessCallback< Dataset > &onSuccess, const DatasetFailureCallback &onFailure, const CommandOptions &options={}) |
Start dataset fetching. More... | |
template<typename Command > | |
void | start (const ControlParameters ¶meters, const CommandSuccessCallback &onSuccess, const CommandFailureCallback &onFailure, const CommandOptions &options={}) |
Start command execution. More... | |
Protected Attributes | |
Face & | m_face |
std::set< shared_ptr< SegmentFetcher > > | m_fetchers |
KeyChain & | m_keyChain |
security::InterestSigner | m_signer |
security::Validator & | m_validator |
NFD Management protocol client.
Definition at line 78 of file controller.hpp.
anonymous enum : uint32_t |
Definition at line 164 of file controller.hpp.
ndn::nfd::Controller::Controller | ( | Face & | face, |
KeyChain & | keyChain, | ||
security::Validator & | validator = security::getAcceptAllValidator() |
||
) |
Construct a Controller that uses face
as transport and keyChain
to sign commands.
Definition at line 30 of file controller.cpp.
ndn::nfd::Controller::~Controller | ( | ) |
Definition at line 38 of file controller.cpp.
|
inline |
Start dataset fetching.
Definition at line 107 of file controller.hpp.
|
inline |
Start dataset fetching.
Definition at line 119 of file controller.hpp.
|
inline |
Start command execution.
Definition at line 94 of file controller.hpp.
|
protected |
Definition at line 178 of file controller.hpp.
|
protected |
Definition at line 184 of file controller.hpp.
|
protected |
Definition at line 179 of file controller.hpp.
|
protected |
Definition at line 181 of file controller.hpp.
|
protected |
Definition at line 180 of file controller.hpp.