|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
22 #ifndef NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP
23 #define NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP
70 "BaseCongestionMarkingInterval",
71 "DefaultCongestionThreshold",
95 template<encoding::Tag TAG>
175 BOOST_ASSERT(this->
hasUri());
213 m_localUri = localUri;
303 m_capacity = capacity;
423 m_strategy = strategy;
442 const time::milliseconds&
446 return m_expirationPeriod;
453 m_expirationPeriod = expirationPeriod;
476 return m_facePersistency;
483 m_facePersistency = persistency;
506 return m_baseCongestionMarkingInterval;
513 m_baseCongestionMarkingInterval = interval;
538 return m_defaultCongestionThreshold;
547 m_defaultCongestionThreshold = threshold;
573 BOOST_ASSERT(this->
hasMtu());
598 const std::vector<bool>&
626 setFlagBit(
size_t bit,
bool value,
bool wantMask =
true);
637 std::vector<bool> m_hasFields;
642 std::string m_localUri;
650 time::milliseconds m_expirationPeriod;
652 time::nanoseconds m_baseCongestionMarkingInterval;
653 uint64_t m_defaultCongestionThreshold;
657 mutable Block m_wire;
668 #endif // NDN_MGMT_NFD_CONTROL_PARAMETERS_HPP
ControlParameters & setCapacity(uint64_t capacity)
@ CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL
@ CONTROL_PARAMETER_ORIGIN
ControlParameters & unsetCost()
ControlParameters & setDefaultCongestionThreshold(uint64_t threshold)
set default congestion threshold (measured in bytes)
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
ControlParameters & setFacePersistency(FacePersistency persistency)
ControlParameters & unsetExpirationPeriod()
@ CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD
ControlParameters & unsetLocalUri()
ControlParameters & unsetStrategy()
ControlParameters & setFlags(uint64_t flags)
@ CONTROL_PARAMETER_LOCAL_URI
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
ControlParameters & unsetBaseCongestionMarkingInterval()
ControlParameters & unsetMtu()
void wireDecode(const Block &wire) final
ControlParameters & unsetMask()
ControlParameters & unsetDefaultCongestionThreshold()
ControlParameters & unsetCapacity()
const time::milliseconds & getExpirationPeriod() const
ControlParameters & unsetFlagBit(size_t bit)
disable a bit in Mask
@ CONTROL_PARAMETER_FACE_PERSISTENCY
const std::string CONTROL_PARAMETER_FIELD[CONTROL_PARAMETER_UBOUND]
bool hasFlagBit(size_t bit) const
void reset() noexcept
Reset the Block to a default-constructed state.
@ CONTROL_PARAMETER_FLAGS
base class for a struct that contains ControlCommand parameters
@ CONTROL_PARAMETER_UBOUND
@ CONTROL_PARAMETER_FACE_ID
const std::vector< bool > & getPresentFields() const
ControlParameters & setFlagBit(size_t bit, bool value, bool wantMask=true)
set a bit in Flags
ControlParameters & unsetFlags()
Represents an absolute name.
uint64_t getCount() const
ControlParameters & setUri(const std::string &uri)
Copyright (c) 2011-2015 Regents of the University of California.
@ CONTROL_PARAMETER_COUNT
@ CONTROL_PARAMETER_STRATEGY
const std::string & getLocalUri() const
ControlParameters & unsetFacePersistency()
time::nanoseconds getBaseCongestionMarkingInterval() const
ControlParameters & setMask(uint64_t mask)
const std::string & getUri() const
ControlParameters & setFaceId(uint64_t faceId)
uint64_t getMtu() const
get MTU (measured in bytes)
ControlParameters & setStrategy(const Name &strategy)
ControlParameters & setExpirationPeriod(const time::milliseconds &expirationPeriod)
ControlParameters & setOrigin(RouteOrigin origin)
bool getFlagBit(size_t bit) const
bool hasExpirationPeriod() const
ControlParameters & setName(const Name &name)
uint64_t getFlags() const
@ CONTROL_PARAMETER_CAPACITY
@ CONTROL_PARAMETER_EXPIRATION_PERIOD
represents parameters in a ControlCommand request or response
bool hasBaseCongestionMarkingInterval() const
ControlParameters & unsetUri()
const Name & getName() const
ControlParameters & setLocalUri(const std::string &localUri)
bool hasDefaultCongestionThreshold() const
Represents a TLV element of NDN packet format.
ControlParameters & unsetFaceId()
ControlParameters & setCost(uint64_t cost)
ControlParameters & setMtu(uint64_t mtu)
set MTU (measured in bytes)
bool hasFacePersistency() const
ControlParameters & unsetCount()
Block wireEncode() const final
ControlParameters & unsetOrigin()
uint64_t getCapacity() const
RouteOrigin getOrigin() const
ControlParameters & setCount(uint64_t count)
represents an error in TLV encoding or decoding
uint64_t getFaceId() const
FacePersistency getFacePersistency() const
uint64_t getDefaultCongestionThreshold() const
get default congestion threshold (measured in bytes)
Error(const char *expectedType, uint32_t actualType)
Copyright (c) 2011-2015 Regents of the University of California.
ControlParameters & unsetName()
const Name & getStrategy() const
ControlParameters & setBaseCongestionMarkingInterval(time::nanoseconds interval)