Contains options for ControlCommand execution. More...
#include <ndn-cxx/mgmt/nfd/command-options.hpp>
Public Member Functions | |
CommandOptions ()=default | |
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 (Name prefix) |
Sets the command prefix. More... | |
CommandOptions & | setSigningInfo (security::SigningInfo signingInfo) |
Sets the signing parameters. More... | |
CommandOptions & | setTimeout (time::milliseconds timeout) |
Sets the command timeout. More... | |
Static Public Attributes | |
static const Name | DEFAULT_PREFIX {"/localhost/nfd"} |
The default command prefix: /localhost/nfd . More... | |
static constexpr time::milliseconds | DEFAULT_TIMEOUT = 10_s |
The default command timeout: 10 seconds. More... | |
Contains options for ControlCommand execution.
Definition at line 34 of file command-options.hpp.
|
default |
Constructs CommandOptions.
|
inline |
Returns the command prefix.
Definition at line 67 of file command-options.hpp.
|
inline |
Returns the signing parameters.
Definition at line 83 of file command-options.hpp.
|
inline |
Returns the command timeout.
Definition at line 49 of file command-options.hpp.
CommandOptions & ndn::nfd::CommandOptions::setPrefix | ( | Name | prefix | ) |
CommandOptions & ndn::nfd::CommandOptions::setSigningInfo | ( | security::SigningInfo | signingInfo | ) |
CommandOptions & ndn::nfd::CommandOptions::setTimeout | ( | 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 27 of file command-options.cpp.
|
inlinestatic |
The default command prefix: /localhost/nfd
.
Definition at line 100 of file command-options.hpp.
|
staticconstexpr |
The default command timeout: 10 seconds.
Definition at line 97 of file command-options.hpp.