NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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 59 of file nack-header.hpp.

Constructor & Destructor Documentation

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

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

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

Definition at line 67 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 86 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 127 of file nack-header.cpp.

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

Referenced by nfd::Forwarder::Forwarder(), ndn::lp::Nack::getReason(), ns3::ndn::BlockHeader::Print(), nfd::fw::ProcessNackTraitsBase::processNack(), and ndn::Face::put().

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

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