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
40  OutRecord(Face& face);
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
contains information about an Interest toward an outgoing face
void clearIncomingNack()
clears last NACK
const lp::NackHeader * getIncomingNack() const
bool setIncomingNack(const lp::Nack &nack)
sets a NACK received from getFace()
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
contains information about an Interest on an incoming or outgoing face