contains options for ControlCommand execution More...
#include <command-options.hpp>
Public Member Functions | |
CommandOptions () | |
constructs CommandOptions More... | |
const time::milliseconds & | getTimeout () const |
CommandOptions & | setTimeout (const time::milliseconds &timeout) |
sets command timeout More... | |
const Name & | getPrefix () const |
CommandOptions & | setPrefix (const Name &prefix) |
sets command prefix More... | |
const security::SigningInfo & | getSigningInfo () const |
CommandOptions & | setSigningInfo (const security::SigningInfo &signingInfo) |
sets signing parameters More... | |
Static Public Attributes | |
static const time::milliseconds | DEFAULT_TIMEOUT |
gives the default command timeout: 10000ms More... | |
static const Name | DEFAULT_PREFIX |
gives the default command prefix: ndn:/localhost/nfd More... | |
contains options for ControlCommand execution
Definition at line 34 of file command-options.hpp.
ndn::nfd::CommandOptions::CommandOptions | ( | ) |
constructs CommandOptions
Definition at line 30 of file command-options.cpp.
|
inline |
Definition at line 47 of file command-options.hpp.
References setTimeout(), and websocketpp::transport::error::timeout.
Referenced by ndn::nfd::Controller::~Controller().
CommandOptions & ndn::nfd::CommandOptions::setTimeout | ( | const time::milliseconds & | timeout | ) |
sets command timeout
timeout | the new command timeout, must be positive |
std::out_of_range | if timeout is non-positive |
Definition at line 37 of file command-options.cpp.
References NDN_THROW, and websocketpp::transport::error::timeout.
Referenced by nfd::rib::Service::get(), and getTimeout().
|
inline |
Definition at line 63 of file command-options.hpp.
References setPrefix().
Referenced by nfd::rib::NfdRibReadvertiseDestination::advertise(), nfd::rib::NfdRibReadvertiseDestination::NfdRibReadvertiseDestination(), nfd::rib::NfdRibReadvertiseDestination::withdraw(), and ndn::nfd::Controller::~Controller().
CommandOptions & ndn::nfd::CommandOptions::setPrefix | ( | const Name & | prefix | ) |
sets command prefix
Definition at line 48 of file command-options.cpp.
Referenced by nfd::rib::Service::get(), and getPrefix().
|
inline |
Definition at line 77 of file command-options.hpp.
References setSigningInfo().
Referenced by ndn::nfd::Controller::~Controller().
CommandOptions & ndn::nfd::CommandOptions::setSigningInfo | ( | const security::SigningInfo & | signingInfo | ) |
sets signing parameters
Definition at line 55 of file command-options.cpp.
Referenced by nfd::rib::NfdRibReadvertiseDestination::advertise(), getSigningInfo(), ndn::Face::registerPrefix(), ndn::Face::setInterestFilter(), and nfd::rib::NfdRibReadvertiseDestination::withdraw().
|
static |
gives the default command timeout: 10000ms
Definition at line 91 of file command-options.hpp.
|
static |
gives the default command prefix: ndn:/localhost/nfd
Definition at line 95 of file command-options.hpp.