|
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_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
uint64_t getNInData() const
FaceStatus & setNInNacks(uint64_t nInNacks)
bool hasExpirationPeriod() const
FaceStatus & setNOutData(uint64_t nOutData)
uint64_t getNInNacks() const
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
provides getters and setters for face information fields
uint64_t getNInBytes() const
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
uint64_t getNOutInterests() const
uint64_t getNOutBytes() const
FaceStatus & setNInBytes(uint64_t nInBytes)
FaceStatus & setDefaultCongestionThreshold(uint64_t threshold)
set default congestion threshold (measured in bytes)
FaceStatus & unsetDefaultCongestionThreshold()
bool hasDefaultCongestionThreshold() const
FaceStatus & setExpirationPeriod(time::milliseconds expirationPeriod)
Copyright (c) 2011-2015 Regents of the University of California.
uint64_t getDefaultCongestionThreshold() const
get default congestion threshold (measured in bytes)
void wireDecode(const Block &wire)
decode FaceStatus
uint64_t getMtu() const
get MTU (measured in bytes)
FaceStatus & setNInInterests(uint64_t nInInterests)
FaceStatus & setBaseCongestionMarkingInterval(time::nanoseconds interval)
time::milliseconds getExpirationPeriod() const
bool hasBaseCongestionMarkingInterval() const
uint64_t getNOutNacks() const
uint64_t getNOutData() const
FaceStatus & setNOutInterests(uint64_t nOutInterests)
represents an item in NFD Face dataset
time::nanoseconds getBaseCongestionMarkingInterval() const
uint64_t getNInInterests() const
const Block & wireEncode() const
encode FaceStatus
Represents a TLV element of NDN packet format.
FaceStatus & unsetBaseCongestionMarkingInterval()
FaceStatus & unsetExpirationPeriod()
FaceStatus & setMtu(uint64_t mtu)
set MTU (measured in bytes)
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
FaceStatus & setNInData(uint64_t nInData)
FaceStatus & setNOutBytes(uint64_t nOutBytes)
Copyright (c) 2011-2015 Regents of the University of California.
FaceStatus & setNOutNacks(uint64_t nOutNacks)