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::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 ndn::nfd::ControlCommand::getRequestName().
|
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().
|
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 ndn::nfd::operator<<(), and ndn::nfd::StrategyChoiceUnsetCommand::validateRequest().
|
inline |
Definition at line 120 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME, and ndn::Block::reset().
Referenced by nfd::rib::NfdRibReadvertiseDestination::advertise(), and nfd::rib::NfdRibReadvertiseDestination::withdraw().
|
inline |
Definition at line 129 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME, and ndn::Block::reset().
|
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(), and wireEncode().
|
inline |
Definition at line 143 of file control-parameters.hpp.
References hasFaceId().
Referenced by ndn::nfd::operator<<(), 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, and ndn::Block::reset().
Referenced by ndn::nfd::FaceUpdateCommand::applyDefaultsToRequest(), ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::FibRemoveNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), and nfd::makeUpdateFaceResponse().
|
inline |
Definition at line 159 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID, and ndn::Block::reset().
|
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 ndn::nfd::operator<<().
|
inline |
Definition at line 180 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI, and ndn::Block::reset().
Referenced by nfd::makeCreateFaceResponse().
|
inline |
Definition at line 189 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI, and ndn::Block::reset().
|
inline |
Definition at line 197 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI.
Referenced by getLocalUri(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 203 of file control-parameters.hpp.
References hasLocalUri().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 210 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI, and ndn::Block::reset().
Referenced by nfd::makeCreateFaceResponse().
|
inline |
Definition at line 219 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI, and ndn::Block::reset().
|
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(), and wireEncode().
|
inline |
Definition at line 233 of file control-parameters.hpp.
References hasOrigin().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 240 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN, and ndn::Block::reset().
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), and ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest().
|
inline |
Definition at line 249 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN, and ndn::Block::reset().
|
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(), and wireEncode().
|
inline |
Definition at line 263 of file control-parameters.hpp.
References hasCost().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 270 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST, and ndn::Block::reset().
Referenced by ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), and ndn::nfd::RibRegisterCommand::applyDefaultsToRequest().
|
inline |
Definition at line 279 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST, and ndn::Block::reset().
|
inline |
Definition at line 287 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY.
Referenced by 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 ndn::nfd::operator<<(), and ndn::nfd::CsEraseCommand::validateResponse().
|
inline |
Definition at line 300 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY, and ndn::Block::reset().
|
inline |
Definition at line 309 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY, and ndn::Block::reset().
|
inline |
Definition at line 317 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT.
Referenced by 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 ndn::nfd::operator<<(), and ndn::nfd::CsEraseCommand::validateRequest().
|
inline |
Definition at line 330 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT, and ndn::Block::reset().
|
inline |
Definition at line 339 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT, and ndn::Block::reset().
|
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 getFlagBit(), ndn::nfd::operator<<(), and setFlagBit().
|
inline |
Definition at line 360 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS, and ndn::Block::reset().
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), and setFlagBit().
|
inline |
Definition at line 369 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS, and ndn::Block::reset().
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, and ndn::Block::reset().
Referenced by setFlagBit(), and unsetFlagBit().
|
inline |
Definition at line 399 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK, and ndn::Block::reset().
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, and ndn::Block::reset().
|
inline |
Definition at line 429 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY, and ndn::Block::reset().
|
inline |
Definition at line 437 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD.
Referenced by getExpirationPeriod(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 443 of file control-parameters.hpp.
References hasExpirationPeriod().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 450 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD, and ndn::Block::reset().
|
inline |
Definition at line 459 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD, and ndn::Block::reset().
|
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<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 473 of file control-parameters.hpp.
References hasFacePersistency().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 480 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY, and ndn::Block::reset().
Referenced by ndn::nfd::FaceCreateCommand::applyDefaultsToRequest(), and nfd::makeUpdateFaceResponse().
|
inline |
Definition at line 489 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY, and ndn::Block::reset().
|
inline |
Definition at line 497 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL.
Referenced by getBaseCongestionMarkingInterval(), ndn::nfd::operator<<(), nfd::updateLinkServiceOptions(), wireDecode(), and wireEncode().
|
inline |
Definition at line 503 of file control-parameters.hpp.
References hasBaseCongestionMarkingInterval().
Referenced by 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, and ndn::Block::reset().
Referenced by nfd::makeUpdateFaceResponse().
|
inline |
Definition at line 519 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL, and ndn::Block::reset().
|
inline |
Definition at line 527 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD.
Referenced by 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 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, and ndn::Block::reset().
Referenced by nfd::makeUpdateFaceResponse().
|
inline |
Definition at line 553 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD, and ndn::Block::reset().
|
inline |
Definition at line 561 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MTU.
Referenced by getMtu(), ndn::nfd::operator<<(), 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 ndn::nfd::operator<<().
|
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, and ndn::Block::reset().
|
inline |
Definition at line 591 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MTU, and ndn::Block::reset().
|
inline |
Definition at line 599 of file control-parameters.hpp.
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::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::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::makeUpdateFaceResponse().
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().