esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
ndnph::Nack Class Reference

Nack packet. More...

#include <nack.hpp>

Inherits ndnph::RefRegion< detail::InterestObj >.

Public Member Functions

NackHeader getHeader () const
 Access the Nack header. More...
 
NackReason getReason () const
 
Interest getInterest () const
 Access the Interest. More...
 
 RefRegion (ObjType *obj=nullptr)
 
- Public Member Functions inherited from ndnph::RefRegion< detail::InterestObj >
 RefRegion (ObjType *obj=nullptr)
 
 operator bool () const
 

Static Public Member Functions

static Nack create (Interest interest, NackReason reason)
 Create a Nack packet in reply to an Interest. More...
 

Additional Inherited Members

- Public Types inherited from ndnph::RefRegion< detail::InterestObj >
using ObjType = detail::InterestObj
 
- Protected Member Functions inherited from ndnph::RefRegion< detail::InterestObj >
 ~RefRegion ()=default
 
- Protected Attributes inherited from ndnph::RefRegion< detail::InterestObj >
ObjTypeobj
 

Detailed Description

Nack packet.

Member Function Documentation

◆ create()

static Nack ndnph::Nack::create ( Interest  interest,
NackReason  reason 
)
inlinestatic

Create a Nack packet in reply to an Interest.

Bug:
Nack should encode the entire original Interest, but this function only includes Name, CanBePrefix, MustBeFresh, and Nonce in the encoding. https://redmine.named-data.net/issues/4535#note-16

◆ getHeader()

NackHeader ndnph::Nack::getHeader ( ) const
inline

Access the Nack header.

◆ getInterest()

Interest ndnph::Nack::getInterest ( ) const
inline

Access the Interest.

◆ getReason()

NackReason ndnph::Nack::getReason ( ) const
inline

◆ RefRegion()

ndnph::RefRegion< Obj >::RefRegion
inlineexplicit

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