NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::lp::NackHeader Class Reference

represents a Network NACK header More...

#include <nack-header.hpp>

Public Member Functions

 NackHeader ()
 
 NackHeader (const Block &block)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 
const BlockwireEncode () const
 
void wireDecode (const Block &wire)
 
NackReason getReason () const
 
NackHeadersetReason (NackReason reason)
 set reason code More...
 

Detailed Description

represents a Network NACK header

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

Constructor & Destructor Documentation

ndn::lp::NackHeader::NackHeader ( )

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

References ndn::lp::NONE.

ndn::lp::NackHeader::NackHeader ( const Block block)
explicit

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

References wireDecode().

Member Function Documentation

template<encoding::Tag TAG>
size_t ndn::lp::NackHeader::wireEncode ( EncodingImpl< TAG > &  encoder) const
const Block & ndn::lp::NackHeader::wireEncode ( ) const

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

References ndn::Block::hasWire().

NackReason ndn::lp::NackHeader::getReason ( ) const
Returns
reason code
Return values
NackReason::NONEif NackReason element does not exist or has an unknown code

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

References ndn::lp::CONGESTION, ndn::lp::DUPLICATE, ndn::lp::NO_ROUTE, and ndn::lp::NONE.

Referenced by ndn::lp::Nack::getReason().

NackHeader & ndn::lp::NackHeader::setReason ( NackReason  reason)

set reason code

Parameters
reasona reason code; NackReason::NONE clears the reason

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

References ndn::Block::reset().

Referenced by ndn::lp::Nack::setReason().


The documentation for this class was generated from the following files: