31 : m_timeout(DEFAULT_TIMEOUT)
32 , m_prefix(DEFAULT_PREFIX)
39 if (timeout <= time::milliseconds::zero()) {
40 NDN_THROW(std::out_of_range(
"Timeout must be positive"));
57 m_signingInfo = signingInfo;
Represents an absolute name.
Contains options for ControlCommand execution.
static const time::milliseconds DEFAULT_TIMEOUT
The default command timeout: 10 seconds.
CommandOptions & setPrefix(const Name &prefix)
Sets the command prefix.
CommandOptions & setTimeout(const time::milliseconds &timeout)
Sets the command timeout.
static const Name DEFAULT_PREFIX
The default command prefix: /localhost/nfd.
CommandOptions()
Constructs CommandOptions.
CommandOptions & setSigningInfo(const security::SigningInfo &signingInfo)
Sets the signing parameters.
Signing parameters passed to KeyChain.
boost::chrono::milliseconds milliseconds