represents parameters in a ControlCommand request or response More...
#include <control-parameters.hpp>
Classes | |
class | Error |
represents parameters in a ControlCommand request or response
This type is copyable because it's an abstraction of a TLV type.
Definition at line 81 of file control-parameters.hpp.
ndn::nfd::ControlParameters::ControlParameters | ( | ) |
Definition at line 37 of file control-parameters.cpp.
|
explicit |
Definition at line 42 of file control-parameters.cpp.
References wireDecode().
size_t ndn::nfd::ControlParameters::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Definition at line 50 of file control-parameters.cpp.
References ndn::tlv::nfd::BaseCongestionMarkingInterval, ndn::tlv::nfd::Capacity, ndn::tlv::nfd::ControlParameters, ndn::tlv::nfd::Cost, ndn::tlv::nfd::Count, ndn::tlv::nfd::DefaultCongestionThreshold, ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::tlv::nfd::Flags, hasBaseCongestionMarkingInterval(), hasCapacity(), hasCost(), hasCount(), hasDefaultCongestionThreshold(), hasExpirationPeriod(), hasFaceId(), hasFacePersistency(), hasFlags(), hasLocalUri(), hasMask(), hasMtu(), hasName(), hasOrigin(), hasStrategy(), hasUri(), ndn::tlv::nfd::LocalUri, ndn::tlv::nfd::Mask, ndn::tlv::nfd::Mtu, ndn::nfd::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(), ndn::tlv::nfd::Origin, ndn::encoding::prependNestedBlock(), ndn::encoding::prependNonNegativeIntegerBlock(), ndn::encoding::prependStringBlock(), ndn::tlv::nfd::Strategy, ndn::tlv::nfd::Uri, and ndn::Name::wireEncode().
Referenced by nfd::CsManager::CsManager(), nfd::RibManager::enableLocalFields(), nfd::FibManager::FibManager(), ndn::nfd::ControlCommand::getRequestName(), nfd::makeCreateFaceResponse(), nfd::updateLinkServiceOptions(), and ndn::util::DummyClientFace::~DummyClientFace().
|
finalvirtual |
Implements ndn::mgmt::ControlParameters.
Definition at line 114 of file control-parameters.cpp.
References ndn::Block::hasWire().
|
finalvirtual |
Implements ndn::mgmt::ControlParameters.
Definition at line 130 of file control-parameters.cpp.
References ndn::tlv::nfd::BaseCongestionMarkingInterval, ndn::tlv::nfd::Capacity, ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL, ndn::nfd::CONTROL_PARAMETER_CAPACITY, ndn::nfd::CONTROL_PARAMETER_COST, ndn::nfd::CONTROL_PARAMETER_COUNT, ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD, ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD, ndn::nfd::CONTROL_PARAMETER_FACE_ID, ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY, ndn::nfd::CONTROL_PARAMETER_FLAGS, ndn::nfd::CONTROL_PARAMETER_LOCAL_URI, ndn::nfd::CONTROL_PARAMETER_MASK, ndn::nfd::CONTROL_PARAMETER_MTU, ndn::nfd::CONTROL_PARAMETER_NAME, ndn::nfd::CONTROL_PARAMETER_ORIGIN, ndn::nfd::CONTROL_PARAMETER_STRATEGY, ndn::nfd::CONTROL_PARAMETER_URI, ndn::tlv::nfd::ControlParameters, ndn::tlv::nfd::Cost, ndn::tlv::nfd::Count, ndn::tlv::nfd::DefaultCongestionThreshold, ndn::Block::elements_end(), ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::Block::find(), ndn::tlv::nfd::Flags, hasBaseCongestionMarkingInterval(), hasCapacity(), hasCost(), hasCount(), hasDefaultCongestionThreshold(), hasExpirationPeriod(), hasFaceId(), hasFacePersistency(), hasFlags(), hasLocalUri(), hasMask(), hasMtu(), hasName(), hasOrigin(), hasStrategy(), hasUri(), ndn::tlv::nfd::LocalUri, ndn::tlv::nfd::Mask, ndn::tlv::nfd::Mtu, ndn::tlv::Name, NDN_THROW, ndn::tlv::nfd::Origin, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::encoding::readString(), ndn::tlv::nfd::Strategy, ndn::Block::type(), ndn::tlv::nfd::Uri, and ndn::Name::wireDecode().
Referenced by ControlParameters(), and ndn::nfd::Controller::~Controller().
|
inline |
Definition at line 107 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME.
Referenced by getName(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 113 of file control-parameters.hpp.
References hasName().
Referenced by nfd::CsManager::CsManager(), nfd::RibManager::enableLocalFields(), nfd::FibManager::FibManager(), ndn::nfd::operator<<(), and ndn::nfd::StrategyChoiceUnsetCommand::validateRequest().
|
inline |
Definition at line 120 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME.
Referenced by nfd::rib::NfdRibReadvertiseDestination::advertise(), nfd::CsManager::CsManager(), and nfd::rib::NfdRibReadvertiseDestination::withdraw().
|
inline |
Definition at line 129 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME.
|
inline |
Definition at line 137 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID.
Referenced by ndn::nfd::FaceUpdateCommand::applyDefaultsToRequest(), ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::FibRemoveNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), getFaceId(), ndn::nfd::operator<<(), wireDecode(), wireEncode(), and ndn::util::DummyClientFace::~DummyClientFace().
|
inline |
Definition at line 143 of file control-parameters.hpp.
References hasFaceId().
Referenced by nfd::RibManager::enableLocalFields(), nfd::FibManager::FibManager(), ndn::nfd::operator<<(), nfd::updateLinkServiceOptions(), ndn::nfd::FaceDestroyCommand::validateRequest(), ndn::nfd::FaceCreateCommand::validateResponse(), ndn::nfd::FaceUpdateCommand::validateResponse(), ndn::nfd::FibAddNextHopCommand::validateResponse(), ndn::nfd::FibRemoveNextHopCommand::validateResponse(), ndn::nfd::RibRegisterCommand::validateResponse(), and ndn::nfd::RibUnregisterCommand::validateResponse().
|
inline |
Definition at line 150 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID.
Referenced by ndn::nfd::FaceUpdateCommand::applyDefaultsToRequest(), ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::FibRemoveNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), nfd::RibManager::enableLocalFields(), nfd::FibManager::FibManager(), nfd::makeUpdateFaceResponse(), and ndn::util::DummyClientFace::~DummyClientFace().
|
inline |
Definition at line 159 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID.
|
inline |
Definition at line 167 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI.
Referenced by getUri(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 173 of file control-parameters.hpp.
References hasUri().
Referenced by nfd::FaceManager::FaceManager(), and ndn::nfd::operator<<().
|
inline |
Definition at line 180 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI.
Referenced by nfd::makeCreateFaceResponse().
|
inline |
Definition at line 189 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI.
|
inline |
Definition at line 197 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI.
Referenced by nfd::FaceManager::FaceManager(), getLocalUri(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 203 of file control-parameters.hpp.
References hasLocalUri().
Referenced by nfd::FaceManager::FaceManager(), and ndn::nfd::operator<<().
|
inline |
Definition at line 210 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI.
|
inline |
Definition at line 219 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI.
|
inline |
Definition at line 227 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), getOrigin(), ndn::nfd::operator<<(), wireDecode(), wireEncode(), and ndn::util::DummyClientFace::~DummyClientFace().
|
inline |
Definition at line 233 of file control-parameters.hpp.
References hasOrigin().
Referenced by nfd::RibManager::enableLocalFields(), and ndn::nfd::operator<<().
|
inline |
Definition at line 240 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), and ndn::util::DummyClientFace::~DummyClientFace().
|
inline |
Definition at line 249 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN.
|
inline |
Definition at line 257 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST.
Referenced by ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), getCost(), ndn::nfd::operator<<(), wireDecode(), wireEncode(), and ndn::util::DummyClientFace::~DummyClientFace().
|
inline |
Definition at line 263 of file control-parameters.hpp.
References hasCost().
Referenced by nfd::RibManager::enableLocalFields(), nfd::FibManager::FibManager(), and ndn::nfd::operator<<().
|
inline |
Definition at line 270 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST.
Referenced by ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), and ndn::util::DummyClientFace::~DummyClientFace().
|
inline |
Definition at line 279 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST.
|
inline |
Definition at line 287 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY.
Referenced by nfd::CsManager::CsManager(), getCapacity(), ndn::nfd::operator<<(), ndn::nfd::CsEraseCommand::validateResponse(), wireDecode(), and wireEncode().
|
inline |
Definition at line 293 of file control-parameters.hpp.
References hasCapacity().
Referenced by nfd::CsManager::CsManager(), ndn::nfd::operator<<(), and ndn::nfd::CsEraseCommand::validateResponse().
|
inline |
Definition at line 300 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY.
Referenced by nfd::CsManager::CsManager().
|
inline |
Definition at line 309 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY.
|
inline |
Definition at line 317 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT.
Referenced by nfd::CsManager::CsManager(), getCount(), ndn::nfd::operator<<(), ndn::nfd::CsEraseCommand::validateRequest(), wireDecode(), and wireEncode().
|
inline |
Definition at line 323 of file control-parameters.hpp.
References hasCount().
Referenced by nfd::CsManager::CsManager(), ndn::nfd::operator<<(), and ndn::nfd::CsEraseCommand::validateRequest().
|
inline |
Definition at line 330 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT.
Referenced by nfd::CsManager::CsManager().
|
inline |
Definition at line 339 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT.
|
inline |
Definition at line 347 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), getFlagBit(), getFlags(), ndn::nfd::operator<<(), setFlagBit(), ndn::nfd::ControlCommand::FieldValidator::validate(), wireDecode(), and wireEncode().
|
inline |
Definition at line 353 of file control-parameters.hpp.
References hasFlags().
Referenced by nfd::RibManager::enableLocalFields(), getFlagBit(), ndn::nfd::operator<<(), and setFlagBit().
|
inline |
Definition at line 360 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), and setFlagBit().
|
inline |
Definition at line 369 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS.
Referenced by unsetFlagBit().
|
inline |
Definition at line 377 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK.
Referenced by getMask(), hasFlagBit(), ndn::nfd::operator<<(), setFlagBit(), unsetFlagBit(), ndn::nfd::ControlCommand::FieldValidator::validate(), wireDecode(), and wireEncode().
|
inline |
Definition at line 383 of file control-parameters.hpp.
References hasMask().
Referenced by hasFlagBit(), ndn::nfd::operator<<(), setFlagBit(), and unsetFlagBit().
|
inline |
Definition at line 390 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK.
Referenced by setFlagBit(), and unsetFlagBit().
|
inline |
Definition at line 399 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK.
Referenced by unsetFlagBit().
|
inline |
Definition at line 407 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY.
Referenced by getStrategy(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 413 of file control-parameters.hpp.
References hasStrategy().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 420 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY.
|
inline |
Definition at line 429 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY.
|
inline |
Definition at line 437 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD.
Referenced by nfd::RibManager::enableLocalFields(), getExpirationPeriod(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 443 of file control-parameters.hpp.
References hasExpirationPeriod().
Referenced by nfd::RibManager::enableLocalFields(), and ndn::nfd::operator<<().
|
inline |
Definition at line 450 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD.
|
inline |
Definition at line 459 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD.
|
inline |
Definition at line 467 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY.
Referenced by ndn::nfd::FaceCreateCommand::applyDefaultsToRequest(), getFacePersistency(), ndn::nfd::operator<<(), nfd::updateLinkServiceOptions(), wireDecode(), and wireEncode().
|
inline |
Definition at line 473 of file control-parameters.hpp.
References hasFacePersistency().
Referenced by nfd::FaceManager::FaceManager(), ndn::nfd::operator<<(), and nfd::updateLinkServiceOptions().
|
inline |
Definition at line 480 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY.
Referenced by ndn::nfd::FaceCreateCommand::applyDefaultsToRequest(), and nfd::updateLinkServiceOptions().
|
inline |
Definition at line 489 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY.
|
inline |
Definition at line 497 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL.
Referenced by nfd::FaceManager::FaceManager(), getBaseCongestionMarkingInterval(), ndn::nfd::operator<<(), nfd::updateLinkServiceOptions(), wireDecode(), and wireEncode().
|
inline |
Definition at line 503 of file control-parameters.hpp.
References hasBaseCongestionMarkingInterval().
Referenced by nfd::FaceManager::FaceManager(), ndn::nfd::operator<<(), and nfd::updateLinkServiceOptions().
|
inline |
Definition at line 510 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL.
Referenced by nfd::makeUpdateFaceResponse().
|
inline |
Definition at line 519 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL.
|
inline |
Definition at line 527 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD.
Referenced by nfd::FaceManager::FaceManager(), getDefaultCongestionThreshold(), ndn::nfd::operator<<(), nfd::updateLinkServiceOptions(), wireDecode(), and wireEncode().
|
inline |
get default congestion threshold (measured in bytes)
Definition at line 535 of file control-parameters.hpp.
References hasDefaultCongestionThreshold().
Referenced by nfd::FaceManager::FaceManager(), ndn::nfd::operator<<(), and nfd::updateLinkServiceOptions().
|
inline |
set default congestion threshold (measured in bytes)
Definition at line 544 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD.
Referenced by nfd::makeUpdateFaceResponse().
|
inline |
Definition at line 553 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD.
|
inline |
Definition at line 561 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MTU.
Referenced by nfd::FaceManager::FaceManager(), getMtu(), ndn::nfd::operator<<(), nfd::updateLinkServiceOptions(), wireDecode(), and wireEncode().
|
inline |
get MTU (measured in bytes)
This value is capped at MAX_NDN_PACKET_SIZE, even if the MTU of the face is unlimited.
Definition at line 571 of file control-parameters.hpp.
References hasMtu().
Referenced by nfd::FaceManager::FaceManager(), ndn::nfd::operator<<(), and nfd::updateLinkServiceOptions().
|
inline |
set MTU (measured in bytes)
This value is capped at MAX_NDN_PACKET_SIZE, even if the MTU of the face is unlimited.
Definition at line 582 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MTU.
Referenced by nfd::updateLinkServiceOptions().
|
inline |
Definition at line 591 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MTU.
|
inline |
Definition at line 599 of file control-parameters.hpp.
References getFlagBit(), hasFlagBit(), ndn::nfd::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(), ndn::nfd::operator<<(), setFlagBit(), and unsetFlagBit().
Referenced by ndn::nfd::ControlCommand::FieldValidator::validate().
bool ndn::nfd::ControlParameters::hasFlagBit | ( | size_t | bit | ) | const |
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 244 of file control-parameters.cpp.
References getMask(), hasMask(), and NDN_THROW.
Referenced by nfd::CsManager::CsManager(), nfd::FaceManager::FaceManager(), getPresentFields(), nfd::makeCreateFaceResponse(), and nfd::updateLinkServiceOptions().
bool ndn::nfd::ControlParameters::getFlagBit | ( | size_t | bit | ) | const |
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 258 of file control-parameters.cpp.
References getFlags(), hasFlags(), and NDN_THROW.
Referenced by nfd::CsManager::CsManager(), nfd::FaceManager::FaceManager(), getPresentFields(), nfd::makeCreateFaceResponse(), and nfd::updateLinkServiceOptions().
ControlParameters & ndn::nfd::ControlParameters::setFlagBit | ( | size_t | bit, |
bool | value, | ||
bool | wantMask = true |
||
) |
set a bit in Flags
bit | bit position within range [0, 64) (least significant bit is 0) |
value | new value in Flags |
wantMask | if true, enable the bit in Mask |
Definition at line 272 of file control-parameters.cpp.
References getFlags(), getMask(), hasFlags(), hasMask(), NDN_THROW, setFlags(), and setMask().
Referenced by nfd::CsManager::CsManager(), getPresentFields(), nfd::makeUpdateFaceResponse(), and nfd::updateLinkServiceOptions().
ControlParameters & ndn::nfd::ControlParameters::unsetFlagBit | ( | size_t | bit | ) |
disable a bit in Mask
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 297 of file control-parameters.cpp.
References getMask(), hasMask(), NDN_THROW, setMask(), unsetFlags(), and unsetMask().
Referenced by getPresentFields().