NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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

◆ NackHeader() [1/2]

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

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

◆ NackHeader() [2/2]

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

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

References wireDecode().

Member Function Documentation

◆ wireEncode() [1/2]

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

◆ wireEncode() [2/2]

const Block & ndn::lp::NackHeader::wireEncode ( ) const

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

References ndn::Block::hasWire().

◆ wireDecode()

◆ getReason()

NackReason ndn::lp::NackHeader::getReason ( ) const
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 face::Face::Impl::asyncPutNack(), ndn::lp::Nack::getReason(), ns3::ndn::BlockHeader::Print(), and nfd::fw::ProcessNackTraitsBase::processNack().

◆ setReason()

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

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