22 #ifndef NDN_CXX_MGMT_NFD_FACE_STATUS_HPP 23 #define NDN_CXX_MGMT_NFD_FACE_STATUS_HPP 47 template<encoding::Tag TAG>
65 return !!m_expirationPeriod;
72 return *m_expirationPeriod;
84 return !!m_baseCongestionMarkingInterval;
91 return *m_baseCongestionMarkingInterval;
103 return !!m_defaultCongestionThreshold;
112 return *m_defaultCongestionThreshold;
153 return m_nInInterests;
180 return m_nOutInterests;
223 optional<time::milliseconds> m_expirationPeriod;
224 optional<time::nanoseconds> m_baseCongestionMarkingInterval;
225 optional<uint64_t> m_defaultCongestionThreshold;
226 optional<uint64_t> m_mtu;
227 uint64_t m_nInInterests;
230 uint64_t m_nOutInterests;
232 uint64_t m_nOutNacks;
234 uint64_t m_nOutBytes;
254 #endif // NDN_CXX_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 the 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
boost::chrono::nanoseconds nanoseconds
FaceStatus & setDefaultCongestionThreshold(uint64_t threshold)
set default congestion threshold (measured in bytes)
uint64_t getNInNacks() const
boost::chrono::milliseconds milliseconds