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 std::optional<time::milliseconds> m_expirationPeriod;
224 std::optional<time::nanoseconds> m_baseCongestionMarkingInterval;
225 std::optional<uint64_t> m_defaultCongestionThreshold;
226 std::optional<uint64_t> m_mtu;
227 uint64_t m_nInInterests = 0;
228 uint64_t m_nInData = 0;
229 uint64_t m_nInNacks = 0;
230 uint64_t m_nOutInterests = 0;
231 uint64_t m_nOutData = 0;
232 uint64_t m_nOutNacks = 0;
233 uint64_t m_nInBytes = 0;
234 uint64_t m_nOutBytes = 0;
Represents a TLV element of the NDN packet format.
Represents an item in NFD Face dataset.
FaceStatus & setNOutInterests(uint64_t nOutInterests)
const Block & wireEncode() const
Encode FaceStatus.
FaceStatus & unsetExpirationPeriod()
FaceStatus & setNOutData(uint64_t nOutData)
FaceStatus & unsetDefaultCongestionThreshold()
FaceStatus & setNOutBytes(uint64_t nOutBytes)
uint64_t getNOutInterests() const
FaceStatus & setNInInterests(uint64_t nInInterests)
FaceStatus & setNOutNacks(uint64_t nOutNacks)
uint64_t getNInData() const
uint64_t getNInBytes() const
void wireDecode(const Block &wire)
Decode FaceStatus.
uint64_t getNOutData() const
FaceStatus & setNInData(uint64_t nInData)
FaceStatus & setExpirationPeriod(time::milliseconds expirationPeriod)
uint64_t getDefaultCongestionThreshold() const
Get default congestion threshold (measured in bytes).
bool hasBaseCongestionMarkingInterval() const
time::nanoseconds getBaseCongestionMarkingInterval() const
uint64_t getNInInterests() const
uint64_t getNInNacks() const
FaceStatus & setNInNacks(uint64_t nInNacks)
FaceStatus & setNInBytes(uint64_t nInBytes)
FaceStatus & setMtu(uint64_t mtu)
Set MTU (measured in bytes).
bool hasExpirationPeriod() const
uint64_t getMtu() const
Get MTU (measured in bytes).
FaceStatus & setDefaultCongestionThreshold(uint64_t threshold)
Set default congestion threshold (measured in bytes).
bool hasDefaultCongestionThreshold() const
FaceStatus & setBaseCongestionMarkingInterval(time::nanoseconds interval)
uint64_t getNOutBytes() const
FaceStatus & unsetBaseCongestionMarkingInterval()
time::milliseconds getExpirationPeriod() const
uint64_t getNOutNacks() const
Provides getters and setters for face information fields.
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Contains classes and functions related to the NFD Management protocol.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
::boost::chrono::milliseconds milliseconds
::boost::chrono::nanoseconds nanoseconds