Namespaces | |
field_location_tags | |
indicates where a field may occur | |
tlv | |
Classes | |
class | CachePolicy |
represents a CachePolicy header field More... | |
struct | DecodeHelper |
struct | DecodeHelper< TlvType, std::pair< Buffer::const_iterator, Buffer::const_iterator > > |
struct | DecodeHelper< TlvType, uint64_t > |
struct | EncodeHelper |
struct | EncodeHelper< TAG, TlvType, std::pair< Buffer::const_iterator, Buffer::const_iterator > > |
struct | EncodeHelper< TAG, TlvType, uint64_t > |
struct | Field |
concept check for fields More... | |
class | FieldDecl |
class | Nack |
represents a Network Nack More... | |
class | NackHeader |
represents a Network NACK header More... | |
class | Packet |
Enumerations | |
enum | CachePolicyType { CachePolicyType::NONE = 0, CachePolicyType::NO_CACHE = 1 } |
indicates the cache policy applied to a Data packet More... | |
enum | NackReason { NackReason::NONE = 0, NackReason::CONGESTION = 50, NackReason::DUPLICATE = 100, NackReason::NO_ROUTE = 150 } |
indicates the reason type of a network NACK More... | |
Functions | |
std::ostream & | operator<< (std::ostream &os, CachePolicyType policy) |
NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (CachePolicy) | |
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (CachePolicy) | |
std::ostream & | operator<< (std::ostream &os, NackReason reason) |
bool | isLessSevere (lp::NackReason x, lp::NackReason y) |
compare NackReason for severity More... | |
NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS (NackHeader) | |
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS (NackHeader) | |
Definition at line 38 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::FragIndex> ndn::lp::FragIndexField |
Definition at line 43 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::FragCount> ndn::lp::FragCountField |
Definition at line 48 of file fields.hpp.
Definition at line 53 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::NextHopFaceId> ndn::lp::NextHopFaceIdField |
Definition at line 58 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, CachePolicy, tlv::CachePolicy> ndn::lp::CachePolicyField |
Definition at line 63 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::IncomingFaceId> ndn::lp::IncomingFaceIdField |
Definition at line 68 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::CongestionMark> ndn::lp::CongestionMarkField |
Definition at line 73 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, Sequence, tlv::Ack, true> ndn::lp::AckField |
Definition at line 79 of file fields.hpp.
Definition at line 84 of file fields.hpp.
typedef FieldDecl<field_location_tags::Header, uint64_t, tlv::HopCountTag> ndn::lp::HopCountTagField |
Definition at line 89 of file fields.hpp.
typedef FieldDecl<field_location_tags::Fragment, std::pair<Buffer::const_iterator, Buffer::const_iterator>, tlv::Fragment> ndn::lp::FragmentField |
The value of the wire encoded field is the data between the provided iterators.
During encoding, the data is copied from the Buffer into the wire buffer.
Definition at line 98 of file fields.hpp.
typedef boost::mpl::set< FragmentField, SequenceField, FragIndexField, FragCountField, NackField, NextHopFaceIdField, CachePolicyField, IncomingFaceIdField, CongestionMarkField, AckField, TxSequenceField, HopCountTagField > ndn::lp::FieldSet |
set of all field declarations
Definition at line 117 of file fields.hpp.
typedef uint64_t ndn::lp::Sequence |
represents a sequence number
Definition at line 35 of file sequence.hpp.
typedef SimpleTag<uint64_t, 10> ndn::lp::IncomingFaceIdTag |
typedef SimpleTag<uint64_t, 11> ndn::lp::NextHopFaceIdTag |
typedef SimpleTag<CachePolicy, 12> ndn::lp::CachePolicyTag |
typedef SimpleTag<uint64_t, 13> ndn::lp::CongestionMarkTag |
typedef SimpleTag<uint64_t, 0x60000000> ndn::lp::HopCountTag |
|
strong |
indicates the cache policy applied to a Data packet
Enumerator | |
---|---|
NONE | |
NO_CACHE |
Definition at line 36 of file cache-policy.hpp.
|
strong |
indicates the reason type of a network NACK
Enumerator | |
---|---|
NONE | |
CONGESTION | |
DUPLICATE | |
NO_ROUTE |
Definition at line 39 of file nack-header.hpp.
std::ostream & ndn::lp::operator<< | ( | std::ostream & | os, |
CachePolicyType | policy | ||
) |
Definition at line 31 of file cache-policy.cpp.
References NO_CACHE.
ndn::lp::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS | ( | CachePolicy | ) |
Referenced by ndn::lp::NackHeader::wireEncode(), and ndn::lp::CachePolicy::wireEncode().
ndn::lp::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS | ( | CachePolicy | ) |
Referenced by ndn::lp::CachePolicy::Error::Error().
std::ostream & ndn::lp::operator<< | ( | std::ostream & | os, |
NackReason | reason | ||
) |
Definition at line 30 of file nack-header.cpp.
References CONGESTION, DUPLICATE, and NO_ROUTE.
bool ndn::lp::isLessSevere | ( | lp::NackReason | x, |
lp::NackReason | y | ||
) |
compare NackReason for severity
lp::NackReason::NONE is treated as most severe
Definition at line 50 of file nack-header.cpp.
References NONE.
Referenced by nfd::fw::ProcessNackTraitsBase::processNack(), and ndn::PendingInterest::recordNack().
ndn::lp::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS | ( | NackHeader | ) |
ndn::lp::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS | ( | NackHeader | ) |
Definition at line 39 of file fields.hpp.
Definition at line 44 of file fields.hpp.
Definition at line 49 of file fields.hpp.
Definition at line 54 of file fields.hpp.
Definition at line 59 of file fields.hpp.
Definition at line 64 of file fields.hpp.
Definition at line 69 of file fields.hpp.
Definition at line 74 of file fields.hpp.
Definition at line 80 of file fields.hpp.
Definition at line 85 of file fields.hpp.
Definition at line 90 of file fields.hpp.
Definition at line 99 of file fields.hpp.