22 #ifndef NDN_MGMT_NFD_FACE_STATUS_HPP 23 #define NDN_MGMT_NFD_FACE_STATUS_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;
152 return m_nInInterests;
179 return m_nOutInterests;
222 optional<time::milliseconds> m_expirationPeriod;
223 optional<time::nanoseconds> m_baseCongestionMarkingInterval;
224 optional<uint64_t> m_defaultCongestionThreshold;
225 optional<uint64_t> m_mtu;
226 uint64_t m_nInInterests;
229 uint64_t m_nOutInterests;
231 uint64_t m_nOutNacks;
233 uint64_t m_nOutBytes;
253 #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)
FaceStatus & setMtu(uint64_t mtu)
set MTU (measured in bytes)
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
uint64_t getMtu() const
get MTU (measured in bytes)
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