NFD Management protocol - ControlCommand client. More...
#include <nfd-controller.hpp>
Public Types | |
| typedef function< void(const ControlParameters &)> | CommandSucceedCallback |
| a callback on command success More... | |
| typedef function< void(uint32_t, const std::string &)> | CommandFailCallback |
| a callback on command failure More... | |
| typedef function< void()> | SuccessCallback |
| typedef function< void(const std::string &)> | FailCallback |
Public Member Functions | |
| Controller (Face &face) | |
| template<typename Command > | |
| void | start (const ControlParameters ¶meters, const CommandSucceedCallback &onSuccess, const CommandFailCallback &onFailure, time::milliseconds timeout=getDefaultCommandTimeout()) |
| start command execution More... | |
| virtual void | selfRegisterPrefix (const Name &prefixToRegister, const SuccessCallback &onSuccess, const FailCallback &onFail) |
| virtual void | selfDeregisterPrefix (const Name &prefixToDeRegister, const SuccessCallback &onSuccess, const FailCallback &onFail) |
Static Public Member Functions | |
| static time::milliseconds | getDefaultCommandTimeout () |
Protected Attributes | |
| Face & | m_face |
| CommandInterestGenerator | m_commandInterestGenerator |
NFD Management protocol - ControlCommand client.
Definition at line 19 of file nfd-controller.hpp.
| typedef function<void(uint32_t,const std::string&)> ndn::nfd::Controller::CommandFailCallback |
a callback on command failure
Definition at line 28 of file nfd-controller.hpp.
| typedef function<void(const ControlParameters&)> ndn::nfd::Controller::CommandSucceedCallback |
a callback on command success
Definition at line 24 of file nfd-controller.hpp.
|
inherited |
Definition at line 24 of file controller.hpp.
|
inherited |
Definition at line 23 of file controller.hpp.
|
explicit |
Definition at line 13 of file nfd-controller.cpp.
|
inlinestatic |
Definition at line 62 of file nfd-controller.hpp.
|
virtual |
Implements ndn::Controller.
Reimplemented in ndn::nrd::Controller.
Definition at line 86 of file nfd-controller.cpp.
|
virtual |
Implements ndn::Controller.
Reimplemented in ndn::nrd::Controller.
Definition at line 70 of file nfd-controller.cpp.
| void ndn::nfd::Controller::start | ( | const ControlParameters & | parameters, |
| const CommandSucceedCallback & | onSuccess, | ||
| const CommandFailCallback & | onFailure, | ||
| time::milliseconds | timeout = getDefaultCommandTimeout() |
||
| ) |
start command execution
Definition at line 75 of file nfd-controller.hpp.
|
protected |
Definition at line 69 of file nfd-controller.hpp.
|
protected |
Definition at line 68 of file nfd-controller.hpp.