Public Member Functions | Static Public Member Functions | List of all members
ndn::NetworkNack Class Reference
Inheritance diagram for ndn::NetworkNack:
ndn::LpPacketHeaderField

Public Member Functions

 NetworkNack ()
 Create an NetworkNack where all the values are unspecified.
 
virtual ~NetworkNack ()
 Override the virtual destructor.
 
ndn_NetworkNackReason getReason () const
 Get the network Nack reason. More...
 
int getOtherReasonCode () const
 Get the reason code from the packet which is other than a recognized Reason enum value. More...
 
void set (const NetworkNackLite &networkNackLite)
 Clear this NetworkNack, and set the values by copying from networkNackLite. More...
 
- Public Member Functions inherited from ndn::LpPacketHeaderField
virtual ~LpPacketHeaderField ()
 The virtual destructor for the base class.
 

Static Public Member Functions

static ptr_lib::shared_ptr< NetworkNackgetFirstHeader (LpPacket &lpPacket)
 Get the first header field in lpPacket which is a NetworkNack. More...
 

Member Function Documentation

ptr_lib::shared_ptr< NetworkNack > ndn::NetworkNack::getFirstHeader ( LpPacket lpPacket)
static

Get the first header field in lpPacket which is a NetworkNack.

This is an internal method which the application normally would not use.

Parameters
lpPacketThe LpPacket with the header fields to search.
Returns
The first NetworkNack header field, or null if not found.
int ndn::NetworkNack::getOtherReasonCode ( ) const
inline

Get the reason code from the packet which is other than a recognized Reason enum value.

This is only meaningful if getReason() is ndn_NetworkNackReason_OTHER_CODE.

Returns
The reason code.
ndn_NetworkNackReason ndn::NetworkNack::getReason ( ) const
inline

Get the network Nack reason.

Returns
The reason enum value. If this is ndn_NetworkNackReason_OTHER_CODE, then call getOtherReasonCode() to get the unrecognized reason code.
void ndn::NetworkNack::set ( const NetworkNackLite networkNackLite)

Clear this NetworkNack, and set the values by copying from networkNackLite.

Parameters
networkNackLiteAn NetworkNackLite object.

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