31 : m_timeout(DEFAULT_TIMEOUT)
32 , m_prefix(DEFAULT_PREFIX)
39 if (timeout <= time::milliseconds::zero()) {
40 BOOST_THROW_EXCEPTION(std::out_of_range(
"Timeout must be positive"));
57 m_signingInfo = signingInfo;
Copyright (c) 2013-2017 Regents of the University of California.
CommandOptions()
constructs CommandOptions
static const Name DEFAULT_PREFIX
gives the default command prefix: ndn:/localhost/nfd
Signing parameters passed to KeyChain.
CommandOptions & setTimeout(const time::milliseconds &timeout)
sets command timeout
contains options for ControlCommand execution
Represents an absolute name.
CommandOptions & setSigningInfo(const security::SigningInfo &signingInfo)
sets signing parameters
static const time::milliseconds DEFAULT_TIMEOUT
gives the default command timeout: 10000ms
CommandOptions & setPrefix(const Name &prefix)
sets command prefix