40 BOOST_THROW_EXCEPTION(std::invalid_argument(
"ClientControlStrategy does not accept parameters"));
43 BOOST_THROW_EXCEPTION(std::invalid_argument(
44 "ClientControlStrategy does not support version " + std::to_string(*parsed.
version)));
48 NFD_LOG_WARN(
"NextHopFaceId field is honored universally and " 49 "it's unnecessary to set client-control strategy.");
55 static Name strategyName(
"/localhost/nfd/strategy/client-control/%FD%02");
void setInstanceName(const Name &name)
set strategy instance name
static Name makeInstanceName(const Name &input, const Name &strategyName)
construct a strategy instance name
#define NFD_REGISTER_STRATEGY(S)
registers a strategy
#define NFD_LOG_WARN(expression)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
static const Name & getStrategyName()
PartialName parameters
parameter components
ndn::optional< uint64_t > version
whether strategyName contains a version component
#define NFD_LOG_INIT(name)
static ParsedInstanceName parseInstanceName(const Name &input)
parse a strategy instance name
ClientControlStrategy(Forwarder &forwarder, const Name &name=getStrategyName())