pit-out-record.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #include "pit-out-record.hpp"
27 
28 namespace nfd {
29 namespace pit {
30 
32  : FaceRecord(face)
33 {
34 }
35 
36 bool
37 OutRecord::setIncomingNack(const lp::Nack& nack)
38 {
39  if (nack.getInterest().getNonce() != this->getLastNonce()) {
40  return false;
41  }
42 
43  m_incomingNack.reset(new lp::NackHeader(nack.getHeader()));
44  return true;
45 }
46 
47 } // namespace pit
48 } // namespace nfd
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
uint32_t getLastNonce() const