NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
pit-out-record.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_TABLE_PIT_OUT_RECORD_HPP
27 #define NFD_DAEMON_TABLE_PIT_OUT_RECORD_HPP
28 
29 #include "pit-face-record.hpp"
30 
31 namespace nfd {
32 namespace pit {
33 
36 class OutRecord : public FaceRecord
37 {
38 public:
39  explicit
41 
47  const lp::NackHeader*
49  {
50  return m_incomingNack.get();
51  }
52 
61  bool
62  setIncomingNack(const lp::Nack& nack);
63 
69  void
71  {
72  m_incomingNack.reset();
73  }
74 
75 private:
76  unique_ptr<lp::NackHeader> m_incomingNack;
77 };
78 
79 } // namespace pit
80 } // namespace nfd
81 
82 #endif // NFD_DAEMON_TABLE_PIT_IN_RECORD_HPP
void clearIncomingNack()
clears last NACK
const lp::NackHeader * getIncomingNack() const
generalization of a network interface
Definition: face.hpp:67
represents a Network Nack
Definition: nack.hpp:40
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
contains information about an Interest on an incoming or outgoing face
bool setIncomingNack(const lp::Nack &nack)
sets a NACK received from getFace()
contains information about an Interest toward an outgoing face
represents a Network NACK header
Definition: nack-header.hpp:59