23 #ifndef NDN_NETWORK_NACK_LITE_HPP
24 #define NDN_NETWORK_NACK_LITE_HPP
26 #include "../c/network-nack-types.h"
66 setReason(ndn_NetworkNackReason reason) { this->reason = reason; }
77 this->otherReasonCode = otherReasonCode;
NetworkNackLite()
Create a NetworkNackLite where all the values are unspecified.
Definition: network-nack-lite.cpp:28
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
ndn_NetworkNackReason getReason() const
Get the network Nack reason.
Definition: network-nack-lite.hpp:48
Definition: lp-packet-lite.hpp:83
NetworkNackLite represents a network Nack packet and includes a Nack reason.
Definition: network-nack-lite.hpp:35
An ndn_NetworkNack represents a network Nack packet and includes a Nack reason.
Definition: network-nack-types.h:48
void setReason(ndn_NetworkNackReason reason)
Set the network Nack reason.
Definition: network-nack-lite.hpp:66
static NetworkNackLite & downCast(ndn_NetworkNack &networkNack)
Downcast the reference to the ndn_NetworkNack struct to an NetworkNackLite.
Definition: network-nack-lite.hpp:96
static const NetworkNackLite * getFirstHeader(const LpPacketLite &lpPacket)
Get the first header field in lpPacket which is a NetworkNackLite.
Definition: network-nack-lite.cpp:34
void setOtherReasonCode(int otherReasonCode)
Set the packet's reason code to use when the reason enum is ndn_NetworkNackReason_OTHER_CODE.
Definition: network-nack-lite.hpp:75
int getOtherReasonCode() const
Get the reason code from the packet which is other than a recognized ndn_NetworkNackReason enum value...
Definition: network-nack-lite.hpp:57