22 #ifndef NDN_MGMT_NFD_FACE_STATUS_HPP 23 #define NDN_MGMT_NFD_FACE_STATUS_HPP 26 #include "../../util/time.hpp" 46 template<encoding::Tag TAG>
64 return !!m_expirationPeriod;
71 return *m_expirationPeriod;
83 return !!m_baseCongestionMarkingInterval;
90 return *m_baseCongestionMarkingInterval;
102 return !!m_defaultCongestionThreshold;
111 return *m_defaultCongestionThreshold;
125 return m_nInInterests;
152 return m_nOutInterests;
198 uint64_t m_nInInterests;
201 uint64_t m_nOutInterests;
203 uint64_t m_nOutNacks;
205 uint64_t m_nOutBytes;
225 #endif // NDN_MGMT_NFD_FACE_STATUS_HPP void wireDecode(const Block &wire)
decode FaceStatus
uint64_t getNOutInterests() const
time::milliseconds getExpirationPeriod() const
Copyright (c) 2011-2015 Regents of the University of California.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
bool hasExpirationPeriod() const
uint64_t getNOutNacks() const
bool hasBaseCongestionMarkingInterval() const
uint64_t getNOutBytes() const
uint64_t getNInInterests() const
FaceStatus & unsetDefaultCongestionThreshold()
Represents a TLV element of NDN packet format.
FaceStatus & setNOutBytes(uint64_t nOutBytes)
FaceStatus & setNOutInterests(uint64_t nOutInterests)
uint64_t getNOutData() const
FaceStatus & setExpirationPeriod(time::milliseconds expirationPeriod)
FaceStatus & setNInInterests(uint64_t nInInterests)
uint64_t getNInBytes() const
FaceStatus & setNInBytes(uint64_t nInBytes)
FaceStatus & unsetBaseCongestionMarkingInterval()
FaceStatus & unsetExpirationPeriod()
FaceStatus & setNInNacks(uint64_t nInNacks)
Copyright (c) 2011-2015 Regents of the University of California.
FaceStatus & setNOutData(uint64_t nOutData)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
represents an item in NFD Face dataset
time::nanoseconds getBaseCongestionMarkingInterval() const
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
uint64_t getDefaultCongestionThreshold() const
get default congestion threshold (measured in bytes)
FaceStatus & setBaseCongestionMarkingInterval(time::nanoseconds interval)
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
uint64_t getNInData() const
FaceStatus & setNOutNacks(uint64_t nOutNacks)
provides getters and setters for face information fields
const Block & wireEncode() const
encode FaceStatus
FaceStatus & setNInData(uint64_t nInData)
bool hasDefaultCongestionThreshold() const
FaceStatus & setDefaultCongestionThreshold(uint64_t threshold)
set default congestion threshold (measured in bytes)
uint64_t getNInNacks() const