#include <nrd-controller.hpp>
Public Types | |
| typedef function< void(const PrefixRegOptions &)> | CommandSucceedCallback |
| 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) | |
| virtual void | selfRegisterPrefix (const Name &prefixToRegister, const SuccessCallback &onSuccess, const FailCallback &onFail) |
| virtual void | selfDeregisterPrefix (const Name &prefixToRegister, const SuccessCallback &onSuccess, const FailCallback &onFail) |
| void | registerPrefix (const PrefixRegOptions &options, const CommandSucceedCallback &onSuccess, const FailCallback &onFail) |
| void | unregisterPrefix (const PrefixRegOptions &options, const CommandSucceedCallback &onSuccess, const FailCallback &onFail) |
| void | advertisePrefix (const PrefixRegOptions &options, const CommandSucceedCallback &onSuccess, const FailCallback &onFail) |
| void | withdrawPrefix (const PrefixRegOptions &options, const CommandSucceedCallback &onSuccess, const FailCallback &onFail) |
| template<typename Command > | |
| void | start (const ControlParameters ¶meters, const CommandSucceedCallback &onSuccess, const CommandFailCallback &onFailure, time::milliseconds timeout=getDefaultCommandTimeout()) |
| start command execution More... | |
Static Public Member Functions | |
| static time::milliseconds | getDefaultCommandTimeout () |
Protected Member Functions | |
| void | startCommand (const std::string &command, const PrefixRegOptions &options, const CommandSucceedCallback &onSuccess, const FailCallback &onFailure) |
Protected Attributes | |
| Face & | m_face |
| CommandInterestGenerator | m_commandInterestGenerator |
Definition at line 18 of file nrd-controller.hpp.
|
inherited |
a callback on command failure
Definition at line 28 of file nfd-controller.hpp.
| typedef function<void(const PrefixRegOptions&)> ndn::nrd::Controller::CommandSucceedCallback |
Definition at line 22 of file nrd-controller.hpp.
|
inherited |
Definition at line 24 of file controller.hpp.
|
inherited |
Definition at line 23 of file controller.hpp.
|
explicit |
Definition at line 18 of file nrd-controller.cpp.
| void ndn::nrd::Controller::advertisePrefix | ( | const PrefixRegOptions & | options, |
| const CommandSucceedCallback & | onSuccess, | ||
| const FailCallback & | onFail | ||
| ) |
Definition at line 66 of file nrd-controller.cpp.
|
inlinestaticinherited |
Definition at line 62 of file nfd-controller.hpp.
| void ndn::nrd::Controller::registerPrefix | ( | const PrefixRegOptions & | options, |
| const CommandSucceedCallback & | onSuccess, | ||
| const FailCallback & | onFail | ||
| ) |
Definition at line 50 of file nrd-controller.cpp.
|
virtual |
Reimplemented from ndn::nfd::Controller.
Definition at line 37 of file nrd-controller.cpp.
|
virtual |
Reimplemented from ndn::nfd::Controller.
Definition at line 24 of file nrd-controller.cpp.
|
inherited |
start command execution
Definition at line 75 of file nfd-controller.hpp.
|
protected |
Definition at line 82 of file nrd-controller.cpp.
| void ndn::nrd::Controller::unregisterPrefix | ( | const PrefixRegOptions & | options, |
| const CommandSucceedCallback & | onSuccess, | ||
| const FailCallback & | onFail | ||
| ) |
Definition at line 58 of file nrd-controller.cpp.
| void ndn::nrd::Controller::withdrawPrefix | ( | const PrefixRegOptions & | options, |
| const CommandSucceedCallback & | onSuccess, | ||
| const FailCallback & | onFail | ||
| ) |
Definition at line 74 of file nrd-controller.cpp.
|
protectedinherited |
Definition at line 69 of file nfd-controller.hpp.
|
protectedinherited |
Definition at line 68 of file nfd-controller.hpp.