ndn::lp Namespace Reference

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
 

Typedefs

typedef FieldDecl< field_location_tags::Header, Sequence, tlv::Ack, true > AckField
 
typedef FieldDecl< field_location_tags::Header, CachePolicy, tlv::CachePolicyCachePolicyField
 
typedef SimpleTag< CachePolicy, 12 > CachePolicyTag
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::CongestionMarkCongestionMarkField
 
typedef SimpleTag< uint64_t, 13 > CongestionMarkTag
 
typedef boost::mpl::set< FragmentField, SequenceField, FragIndexField, FragCountField, NackField, NextHopFaceIdField, CachePolicyField, IncomingFaceIdField, CongestionMarkField, AckField, TxSequenceFieldFieldSet
 set of all field declarations More...
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::FragCountFragCountField
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::FragIndexFragIndexField
 
typedef FieldDecl< field_location_tags::Fragment, std::pair< Buffer::const_iterator, Buffer::const_iterator >, tlv::FragmentFragmentField
 The value of the wire encoded field is the data between the provided iterators. More...
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::IncomingFaceIdIncomingFaceIdField
 
typedef SimpleTag< uint64_t, 10 > IncomingFaceIdTag
 
typedef FieldDecl< field_location_tags::Header, NackHeader, tlv::NackNackField
 
typedef FieldDecl< field_location_tags::Header, uint64_t, tlv::NextHopFaceIdNextHopFaceIdField
 
typedef SimpleTag< uint64_t, 11 > NextHopFaceIdTag
 
typedef uint64_t Sequence
 represents a sequence number More...
 
typedef FieldDecl< field_location_tags::Header, Sequence, tlv::SequenceSequenceField
 
typedef FieldDecl< field_location_tags::Header, Sequence, tlv::TxSequenceTxSequenceField
 

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

 BOOST_CONCEPT_ASSERT ((Field< SequenceField >))
 
template size_t CachePolicy::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const
 
template size_t CachePolicy::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const
 
bool isLessSevere (lp::NackReason x, lp::NackReason y)
 compare NackReason for severity More...
 
template size_t NackHeader::wireEncode<::ndn::encoding::EncoderTag > (::ndn::EncodingBuffer &) const
 
template size_t NackHeader::wireEncode<::ndn::encoding::EstimatorTag > (::ndn::EncodingEstimator &) const
 
std::ostream & operator<< (std::ostream &os, NackReason reason)
 
std::ostream & operator<< (std::ostream &os, CachePolicyType policy)
 

Typedef Documentation

Definition at line 50 of file tags.hpp.

typedef SimpleTag<uint64_t, 13> ndn::lp::CongestionMarkTag

Definition at line 57 of file tags.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 93 of file fields.hpp.

typedef SimpleTag<uint64_t, 10> ndn::lp::IncomingFaceIdTag

Definition at line 36 of file tags.hpp.

typedef SimpleTag<uint64_t, 11> ndn::lp::NextHopFaceIdTag

Definition at line 43 of file tags.hpp.

typedef uint64_t ndn::lp::Sequence

represents a sequence number

Definition at line 35 of file sequence.hpp.

Enumeration Type Documentation

indicates the cache policy applied to a Data packet

Enumerator
NONE 
NO_CACHE 

Definition at line 36 of file cache-policy.hpp.

enum ndn::lp::NackReason
strong

indicates the reason type of a network NACK

Enumerator
NONE 
CONGESTION 
DUPLICATE 
NO_ROUTE 

Definition at line 39 of file nack-header.hpp.

Function Documentation

ndn::lp::BOOST_CONCEPT_ASSERT ( (Field< SequenceField >)  )
template size_t ndn::lp::CachePolicy::wireEncode<::ndn::encoding::EncoderTag > ( ::ndn::EncodingBuffer &  ) const
template size_t ndn::lp::CachePolicy::wireEncode<::ndn::encoding::EstimatorTag > ( ::ndn::EncodingEstimator &  ) const
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.

template size_t ndn::lp::NackHeader::wireEncode<::ndn::encoding::EncoderTag > ( ::ndn::EncodingBuffer &  ) const
template size_t ndn::lp::NackHeader::wireEncode<::ndn::encoding::EstimatorTag > ( ::ndn::EncodingEstimator &  ) const
std::ostream & ndn::lp::operator<< ( std::ostream &  os,
NackReason  reason 
)

Definition at line 30 of file nack-header.cpp.

std::ostream & ndn::lp::operator<< ( std::ostream &  os,
CachePolicyType  policy 
)

Definition at line 31 of file cache-policy.cpp.