NetworkNackLite represents a network Nack packet and includes a Nack reason.
More...
#include <network-nack-lite.hpp>
NetworkNackLite represents a network Nack packet and includes a Nack reason.
Get the first header field in lpPacket which is a NetworkNackLite.
- Parameters
-
lpPacket | The ndn_LpPacket struct with the header fields to search. |
- Returns
- A pointer to the first NetworkNackLite header field, or 0 if not found.
int ndn::NetworkNackLite::getOtherReasonCode |
( |
| ) |
const |
|
inline |
Get the reason code from the packet which is other than a recognized ndn_NetworkNackReason enum value.
This is only meaningful if getReason() is ndn_NetworkNackReason_OTHER_CODE.
- Returns
- The reason code.
ndn_NetworkNackReason ndn::NetworkNackLite::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::NetworkNackLite::setOtherReasonCode |
( |
int |
otherReasonCode | ) |
|
|
inline |
Set the packet's reason code to use when the reason enum is ndn_NetworkNackReason_OTHER_CODE.
If the packet's reason code is a recognized enum value, just call setReason().
- Parameters
-
otherReasonCode | The packet's unrecognized reason code. |
void ndn::NetworkNackLite::setReason |
( |
ndn_NetworkNackReason |
reason | ) |
|
|
inline |
Set the network Nack reason.
- Parameters
-
reason | The network Nack reason enum value. If the packet's reason code is not a recognized Reason enum value, use ndn_NetworkNackReason_OTHER_CODE and call setOtherReasonCode(). |
The documentation for this class was generated from the following files: