contains options for ControlCommand execution
More...
#include <command-options.hpp>
contains options for ControlCommand execution
- Note
- This type is intentionally copyable
Definition at line 43 of file command-options.hpp.
ndn::nfd::CommandOptions::CommandOptions |
( |
| ) |
|
const Name& ndn::nfd::CommandOptions::getPrefix |
( |
| ) |
const |
|
inline |
const Name& ndn::nfd::CommandOptions::getSigningCertificate |
( |
| ) |
const |
const Name& ndn::nfd::CommandOptions::getSigningIdentity |
( |
| ) |
const |
- Deprecated:
- use getSigningInfo and setSigningInfo
- Returns
- selection of signing parameters
const time::milliseconds& ndn::nfd::CommandOptions::getTimeout |
( |
| ) |
const |
|
inline |
CommandOptions& ndn::nfd::CommandOptions::setSigningCertificate |
( |
const Name & |
certificateName | ) |
|
chooses to use a specific identity certificate
- Deprecated:
- use getSigningInfo and setSigningInfo
- Parameters
-
certificateName | identity certificate Name |
- Exceptions
-
std::invalid_argument | if certificateName is invalid |
- Postcondition
- getSigningParamsKind() == SIGNING_PARAMS_CERTIFICATE
-
getSigningCertificate() == certificateName
- Returns
- self
chooses to use a specific identity certificate
- Deprecated:
- use getSigningInfo and setSigningInfo
This is equivalent to .setIdentityCertificate(certificate.getName())
chooses to use default identity and certificate
- Deprecated:
- use getSigningInfo and setSigningInfo
- Postcondition
- getSigningParamsKind() == SIGNING_PARAMS_DEFAULT
- Returns
- self
chooses to use a specific identity and its default certificate
- Deprecated:
- use getSigningInfo and setSigningInfo
- Postcondition
- getSigningParamsKind() == SIGNING_PARAMS_IDENTITY
-
getIdentityName() == identityName
- Returns
- self
CommandOptions & ndn::nfd::CommandOptions::setTimeout |
( |
const time::milliseconds & |
timeout | ) |
|
sets command timeout
- Parameters
-
timeout | the new command timeout, must be positive |
- Exceptions
-
std::out_of_range | if timeout is non-positive |
- Returns
- self
Definition at line 42 of file command-options.cpp.
const Name ndn::nfd::CommandOptions::DEFAULT_PREFIX |
|
static |
const time::milliseconds ndn::nfd::CommandOptions::DEFAULT_TIMEOUT |
|
static |