|
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.
34 : m_nNameTreeEntries(0)
37 , m_nMeasurementsEntries(0)
45 , m_nSatisfiedInterests(0)
46 , m_nUnsatisfiedInterests(0)
55 template<encoding::Tag TAG>
59 size_t totalLength = 0;
80 totalLength += encoder.prependVarNumber(totalLength);
99 m_wire = buffer.block();
247 m_nfdVersion = nfdVersion;
255 m_startTimestamp = startTimestamp;
263 m_currentTimestamp = currentTimestamp;
271 m_nNameTreeEntries = nNameTreeEntries;
279 m_nFibEntries = nFibEntries;
287 m_nPitEntries = nPitEntries;
295 m_nMeasurementsEntries = nMeasurementsEntries;
303 m_nCsEntries = nCsEntries;
311 m_nInInterests = nInInterests;
327 m_nInNacks = nInNacks;
335 m_nOutInterests = nOutInterests;
343 m_nOutData = nOutData;
351 m_nOutNacks = nOutNacks;
359 m_nSatisfiedInterests = nSatisfiedInterests;
367 m_nUnsatisfiedInterests = nUnsatisfiedInterests;
395 os <<
"GeneralStatus(NfdVersion: " << status.
getNfdVersion() <<
",\n"
405 <<
" Data: {in: " << status.
getNInData() <<
", "
ForwarderStatus & setNInInterests(uint64_t nInInterests)
ForwarderStatus & setNNameTreeEntries(uint64_t nNameTreeEntries)
ForwarderStatus & setNfdVersion(const std::string &nfdVersion)
ForwarderStatus & setNOutInterests(uint64_t nOutInterests)
ForwarderStatus & setNUnsatisfiedInterests(uint64_t nUnsatisfiedInterests)
ForwarderStatus & setNInNacks(uint64_t nInNacks)
ForwarderStatus & setNPitEntries(uint64_t nPitEntries)
uint64_t getNNameTreeEntries() const
uint64_t getNSatisfiedInterests() const
ForwarderStatus & setNCsEntries(uint64_t nCsEntries)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
element_const_iterator elements_begin() const
Equivalent to elements().begin()
const std::string & getNfdVersion() const
const Block & wireEncode() const
encode ForwarderStatus as a Content block
void wireDecode(const Block &wire)
decode ForwarderStatus from a Content block
ForwarderStatus & setNSatisfiedInterests(uint64_t nSatisfiedInterests)
uint64_t getNInNacks() const
std::string readString(const Block &block)
Read TLV-VALUE of a TLV element as a string.
const time::system_clock::TimePoint & getCurrentTimestamp() const
ForwarderStatus & setNMeasurementsEntries(uint64_t nMeasurementsEntries)
void reset() noexcept
Reset the Block to a default-constructed state.
uint64_t getNOutData() const
ForwarderStatus & setStartTimestamp(const time::system_clock::TimePoint &startTimestamp)
ForwarderStatus & setNOutData(uint64_t nOutData)
EncodingImpl< EstimatorTag > EncodingEstimator
uint64_t readNonNegativeInteger(const Block &block)
Read a non-negative integer from a TLV element.
uint64_t getNInData() const
uint64_t getNOutNacks() const
Copyright (c) 2011-2015 Regents of the University of California.
uint32_t type() const
Return the TLV-TYPE of the Block.
uint64_t getNOutInterests() const
ForwarderStatus & setNInData(uint64_t nInData)
uint64_t getNCsEntries() const
ForwarderStatus & setCurrentTimestamp(const time::system_clock::TimePoint ¤tTimestamp)
system_clock::TimePoint fromUnixTimestamp(milliseconds duration)
Convert UNIX timestamp to system_clock::TimePoint.
ForwarderStatus & setNFibEntries(uint64_t nFibEntries)
void parse() const
Parse TLV-VALUE into sub-elements.
size_t prependNonNegativeIntegerBlock(EncodingImpl< TAG > &encoder, uint32_t type, uint64_t value)
Prepend a TLV element containing a non-negative integer.
uint64_t getNUnsatisfiedInterests() const
Represents a TLV element of NDN packet format.
const time::system_clock::TimePoint & getStartTimestamp() const
element_const_iterator elements_end() const
Equivalent to elements().end()
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
uint64_t getNPitEntries() const
milliseconds toUnixTimestamp(const system_clock::TimePoint &point)
Convert system_clock::TimePoint to UNIX timestamp.
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
ForwarderStatus & setNOutNacks(uint64_t nOutNacks)
uint64_t getNInInterests() const
size_t prependStringBlock(EncodingImpl< TAG > &encoder, uint32_t type, const std::string &value)
Prepend a TLV element containing a string.
uint64_t getNMeasurementsEntries() const
uint64_t getNFibEntries() const
concept check for an item in a Status Dataset
NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
represents NFD General Status dataset
Copyright (c) 2011-2015 Regents of the University of California.
EncodingImpl< EncoderTag > EncodingBuffer