23 #ifndef NDN_NETWORK_NACK_HPP
24 #define NDN_NETWORK_NACK_HPP
26 #include <ndn-cpp/common.hpp>
27 #include <ndn-cpp/lite/network-nack-lite.hpp>
28 #include <ndn-cpp/lp-packet-header-field.hpp>
40 : reason_(ndn_NetworkNackReason_NONE),
73 static ptr_lib::shared_ptr<NetworkNack>
85 ndn_NetworkNackReason reason_;
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
int getOtherReasonCode() const
Get the reason code from the packet which is other than a recognized Reason enum value.
Definition: network-nack.hpp:65
NetworkNack()
Create an NetworkNack where all the values are unspecified.
Definition: network-nack.hpp:39
ndn_NetworkNackReason getReason() const
Get the network Nack reason.
Definition: network-nack.hpp:56
NetworkNackLite represents a network Nack packet and includes a Nack reason.
Definition: network-nack-lite.hpp:35
An LpPacket represents an NDNLPv2 packet including header fields an an optional fragment.
Definition: lp-packet.hpp:39
Definition: network-nack.hpp:34
virtual ~NetworkNack()
Override the virtual destructor.
Definition: network-nack.cpp:27
void set(const NetworkNackLite &networkNackLite)
Clear this NetworkNack, and set the values by copying from networkNackLite.
Definition: network-nack.cpp:43
static ptr_lib::shared_ptr< NetworkNack > getFirstHeader(LpPacket &lpPacket)
Get the first header field in lpPacket which is a NetworkNack.
Definition: network-nack.cpp:30