represents parameters in a ControlCommand request or response
More...
#include <ndn-cxx/mgmt/nfd/control-parameters.hpp>
represents parameters in a ControlCommand request or response
- See also
- https://redmine.named-data.net/projects/nfd/wiki/ControlCommand#ControlParameters
This type is copyable because it's an abstraction of a TLV type.
Definition at line 81 of file control-parameters.hpp.
◆ ControlParameters() [1/2]
ndn::nfd::ControlParameters::ControlParameters |
( |
| ) |
|
◆ ControlParameters() [2/2]
ndn::nfd::ControlParameters::ControlParameters |
( |
const Block & |
block | ) |
|
|
explicit |
◆ getBaseCongestionMarkingInterval()
time::nanoseconds ndn::nfd::ControlParameters::getBaseCongestionMarkingInterval |
( |
| ) |
const |
|
inline |
◆ getCapacity()
uint64_t ndn::nfd::ControlParameters::getCapacity |
( |
| ) |
const |
|
inline |
◆ getCost()
uint64_t ndn::nfd::ControlParameters::getCost |
( |
| ) |
const |
|
inline |
◆ getCount()
uint64_t ndn::nfd::ControlParameters::getCount |
( |
| ) |
const |
|
inline |
◆ getDefaultCongestionThreshold()
uint64_t ndn::nfd::ControlParameters::getDefaultCongestionThreshold |
( |
| ) |
const |
|
inline |
◆ getExpirationPeriod()
const time::milliseconds& ndn::nfd::ControlParameters::getExpirationPeriod |
( |
| ) |
const |
|
inline |
◆ getFaceId()
uint64_t ndn::nfd::ControlParameters::getFaceId |
( |
| ) |
const |
|
inline |
◆ getFacePersistency()
◆ getFlagBit()
bool ndn::nfd::ControlParameters::getFlagBit |
( |
size_t |
bit | ) |
const |
- Returns
- bit at a position in Flags
- Parameters
-
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 258 of file control-parameters.cpp.
◆ getFlags()
uint64_t ndn::nfd::ControlParameters::getFlags |
( |
| ) |
const |
|
inline |
◆ getLocalUri()
const std::string& ndn::nfd::ControlParameters::getLocalUri |
( |
| ) |
const |
|
inline |
◆ getMask()
uint64_t ndn::nfd::ControlParameters::getMask |
( |
| ) |
const |
|
inline |
◆ getMtu()
uint64_t ndn::nfd::ControlParameters::getMtu |
( |
| ) |
const |
|
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.
◆ getName()
const Name& ndn::nfd::ControlParameters::getName |
( |
| ) |
const |
|
inline |
◆ getOrigin()
RouteOrigin ndn::nfd::ControlParameters::getOrigin |
( |
| ) |
const |
|
inline |
◆ getPresentFields()
const std::vector<bool>& ndn::nfd::ControlParameters::getPresentFields |
( |
| ) |
const |
|
inline |
◆ getStrategy()
const Name& ndn::nfd::ControlParameters::getStrategy |
( |
| ) |
const |
|
inline |
◆ getUri()
const std::string& ndn::nfd::ControlParameters::getUri |
( |
| ) |
const |
|
inline |
◆ hasBaseCongestionMarkingInterval()
bool ndn::nfd::ControlParameters::hasBaseCongestionMarkingInterval |
( |
| ) |
const |
|
inline |
◆ hasCapacity()
bool ndn::nfd::ControlParameters::hasCapacity |
( |
| ) |
const |
|
inline |
◆ hasCost()
bool ndn::nfd::ControlParameters::hasCost |
( |
| ) |
const |
|
inline |
◆ hasCount()
bool ndn::nfd::ControlParameters::hasCount |
( |
| ) |
const |
|
inline |
◆ hasDefaultCongestionThreshold()
bool ndn::nfd::ControlParameters::hasDefaultCongestionThreshold |
( |
| ) |
const |
|
inline |
◆ hasExpirationPeriod()
bool ndn::nfd::ControlParameters::hasExpirationPeriod |
( |
| ) |
const |
|
inline |
◆ hasFaceId()
bool ndn::nfd::ControlParameters::hasFaceId |
( |
| ) |
const |
|
inline |
◆ hasFacePersistency()
bool ndn::nfd::ControlParameters::hasFacePersistency |
( |
| ) |
const |
|
inline |
◆ hasFlagBit()
bool ndn::nfd::ControlParameters::hasFlagBit |
( |
size_t |
bit | ) |
const |
- Returns
- whether bit is enabled in Mask
- Parameters
-
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 244 of file control-parameters.cpp.
◆ hasFlags()
bool ndn::nfd::ControlParameters::hasFlags |
( |
| ) |
const |
|
inline |
◆ hasLocalUri()
bool ndn::nfd::ControlParameters::hasLocalUri |
( |
| ) |
const |
|
inline |
◆ hasMask()
bool ndn::nfd::ControlParameters::hasMask |
( |
| ) |
const |
|
inline |
◆ hasMtu()
bool ndn::nfd::ControlParameters::hasMtu |
( |
| ) |
const |
|
inline |
◆ hasName()
bool ndn::nfd::ControlParameters::hasName |
( |
| ) |
const |
|
inline |
◆ hasOrigin()
bool ndn::nfd::ControlParameters::hasOrigin |
( |
| ) |
const |
|
inline |
◆ hasStrategy()
bool ndn::nfd::ControlParameters::hasStrategy |
( |
| ) |
const |
|
inline |
◆ hasUri()
bool ndn::nfd::ControlParameters::hasUri |
( |
| ) |
const |
|
inline |
◆ setBaseCongestionMarkingInterval()
ControlParameters& ndn::nfd::ControlParameters::setBaseCongestionMarkingInterval |
( |
time::nanoseconds |
interval | ) |
|
|
inline |
◆ setCapacity()
◆ setCost()
◆ setCount()
◆ setDefaultCongestionThreshold()
ControlParameters& ndn::nfd::ControlParameters::setDefaultCongestionThreshold |
( |
uint64_t |
threshold | ) |
|
|
inline |
◆ setExpirationPeriod()
ControlParameters& ndn::nfd::ControlParameters::setExpirationPeriod |
( |
const time::milliseconds & |
expirationPeriod | ) |
|
|
inline |
◆ setFaceId()
◆ setFacePersistency()
◆ setFlagBit()
ControlParameters & ndn::nfd::ControlParameters::setFlagBit |
( |
size_t |
bit, |
|
|
bool |
value, |
|
|
bool |
wantMask = true |
|
) |
| |
set a bit in Flags
- Parameters
-
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.
◆ setFlags()
◆ setLocalUri()
ControlParameters& ndn::nfd::ControlParameters::setLocalUri |
( |
const std::string & |
localUri | ) |
|
|
inline |
◆ setMask()
◆ setMtu()
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.
◆ setName()
◆ setOrigin()
◆ setStrategy()
◆ setUri()
◆ unsetBaseCongestionMarkingInterval()
ControlParameters& ndn::nfd::ControlParameters::unsetBaseCongestionMarkingInterval |
( |
| ) |
|
|
inline |
◆ unsetCapacity()
◆ unsetCost()
◆ unsetCount()
◆ unsetDefaultCongestionThreshold()
◆ unsetExpirationPeriod()
◆ unsetFaceId()
◆ unsetFacePersistency()
◆ unsetFlagBit()
disable a bit in Mask
- Parameters
-
bit | bit position within range [0, 64) (least significant bit is 0) |
- Postcondition
- If all bits are disabled, Flags and Mask fields are deleted.
Definition at line 297 of file control-parameters.cpp.
◆ unsetFlags()
◆ unsetLocalUri()
◆ unsetMask()
◆ unsetMtu()
◆ unsetName()
◆ unsetOrigin()
◆ unsetStrategy()
◆ unsetUri()
◆ wireDecode()
void ndn::nfd::ControlParameters::wireDecode |
( |
const Block & |
wire | ) |
|
|
finalvirtual |
◆ wireEncode() [1/2]
template<encoding::Tag TAG>
size_t ndn::nfd::ControlParameters::wireEncode |
( |
EncodingImpl< TAG > & |
encoder | ) |
const |
◆ wireEncode() [2/2]
Block ndn::nfd::ControlParameters::wireEncode |
( |
| ) |
const |
|
finalvirtual |