contains options for ControlCommand execution More...
#include <command-options.hpp>
Public Member Functions | |
CommandOptions () | |
constructs CommandOptions More... | |
const Name & | getPrefix () const |
const security::SigningInfo & | getSigningInfo () const |
const time::milliseconds & | getTimeout () const |
CommandOptions & | setPrefix (const Name &prefix) |
sets command prefix More... | |
CommandOptions & | setSigningInfo (const security::SigningInfo &signingInfo) |
sets signing parameters More... | |
CommandOptions & | setTimeout (const time::milliseconds &timeout) |
sets command timeout More... | |
Static Public Attributes | |
static const Name | DEFAULT_PREFIX |
gives the default command prefix: ndn:/localhost/nfd More... | |
static const time::milliseconds | DEFAULT_TIMEOUT |
gives the default command timeout: 10000ms 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 63 of file command-options.hpp.
|
inline |
Definition at line 77 of file command-options.hpp.
|
inline |
Definition at line 47 of file command-options.hpp.
CommandOptions & ndn::nfd::CommandOptions::setPrefix | ( | const Name & | prefix | ) |
CommandOptions & ndn::nfd::CommandOptions::setSigningInfo | ( | const security::SigningInfo & | signingInfo | ) |
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.
|
static |
gives the default command prefix: ndn:/localhost/nfd
Definition at line 95 of file command-options.hpp.
|
static |
gives the default command timeout: 10000ms
Definition at line 91 of file command-options.hpp.