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.
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.
|
inline |
Definition at line 63 of file command-options.hpp.
Referenced by nfd::rib::NfdRibReadvertiseDestination::advertise(), and nfd::rib::NfdRibReadvertiseDestination::withdraw().
CommandOptions & ndn::nfd::CommandOptions::setPrefix | ( | const Name & | prefix | ) |
|
inline |
Definition at line 77 of file command-options.hpp.
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(), 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.