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

represents a Network Nack More...

#include <nack.hpp>

Inheritance diagram for ndn::lp::Nack:
Collaboration diagram for ndn::lp::Nack:

Public Member Functions

 Nack ()
 
 Nack (const Interest &interest)
 
 Nack (Interest &&interest)
 
const InterestgetInterest () const
 
InterestgetInterest ()
 
const NackHeadergetHeader () const
 
NackHeadergetHeader ()
 
NacksetHeader (const NackHeader &header)
 
NacksetHeader (NackHeader &&header)
 
NackReason getReason () const
 
NacksetReason (NackReason reason)
 
- Public Member Functions inherited from ndn::PacketBase
uint64_t getCongestionMark () const
 get the value of the CongestionMark tag More...
 
void setCongestionMark (uint64_t mark)
 set the CongestionMark tag to the specified value More...
 
- Public Member Functions inherited from ndn::TagHost
template<typename T >
shared_ptr< T > getTag () const
 get a tag item More...
 
template<typename T >
void setTag (shared_ptr< T > tag) const
 set a tag item More...
 
template<typename T >
void removeTag () const
 remove tag item More...
 

Detailed Description

represents a Network Nack

This type binds a NackHeader and an Interest, and is intended for use in network layer.

Definition at line 40 of file nack.hpp.

Constructor & Destructor Documentation

◆ Nack() [1/3]

ndn::lp::Nack::Nack ( )
default

◆ Nack() [2/3]

ndn::lp::Nack::Nack ( const Interest interest)
explicit

Definition at line 31 of file nack.cpp.

◆ Nack() [3/3]

ndn::lp::Nack::Nack ( Interest &&  interest)
explicit

Definition at line 36 of file nack.cpp.

Member Function Documentation

◆ getInterest() [1/2]

◆ getInterest() [2/2]

Interest& ndn::lp::Nack::getInterest ( )
inline

Definition at line 59 of file nack.hpp.

◆ getHeader() [1/2]

const NackHeader& ndn::lp::Nack::getHeader ( ) const
inline

◆ getHeader() [2/2]

NackHeader& ndn::lp::Nack::getHeader ( )
inline

Definition at line 71 of file nack.hpp.

◆ setHeader() [1/2]

Nack& ndn::lp::Nack::setHeader ( const NackHeader header)
inline

Definition at line 77 of file nack.hpp.

◆ setHeader() [2/2]

Nack& ndn::lp::Nack::setHeader ( NackHeader &&  header)
inline

Definition at line 84 of file nack.hpp.

◆ getReason()

◆ setReason()

Nack& ndn::lp::Nack::setReason ( NackReason  reason)
inline

Definition at line 98 of file nack.hpp.

References ndn::lp::NackHeader::setReason().


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