Contains options for ControlCommand execution. More...
#include <ndn-cxx/mgmt/nfd/command-options.hpp>
Public Member Functions | |
CommandOptions () | |
Constructs CommandOptions. More... | |
const Name & | getPrefix () const |
Returns the command prefix. More... | |
const security::SigningInfo & | getSigningInfo () const |
Returns the signing parameters. More... | |
time::milliseconds | getTimeout () const |
Returns the command timeout. More... | |
CommandOptions & | setPrefix (const Name &prefix) |
Sets the command prefix. More... | |
CommandOptions & | setSigningInfo (const security::SigningInfo &signingInfo) |
Sets the signing parameters. More... | |
CommandOptions & | setTimeout (const time::milliseconds &timeout) |
Sets the command timeout. More... | |
Static Public Attributes | |
static const Name | DEFAULT_PREFIX |
The default command prefix: /localhost/nfd . More... | |
static const time::milliseconds | DEFAULT_TIMEOUT |
The default command timeout: 10 seconds. 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 |
Returns the command prefix.
Definition at line 65 of file command-options.hpp.
|
inline |
Returns the signing parameters.
Definition at line 80 of file command-options.hpp.
|
inline |
Returns the command timeout.
Definition at line 48 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 the 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 |
The default command prefix: /localhost/nfd
.
Definition at line 96 of file command-options.hpp.
|
static |
The default command timeout: 10 seconds.
Definition at line 93 of file command-options.hpp.