NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pit-in-record.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25 #include "pit-in-record.hpp"
26 
27 namespace nfd {
28 namespace pit {
29 
30 InRecord::InRecord(shared_ptr<Face> face)
31  : FaceRecord(face)
32 {
33 }
34 
35 void
36 InRecord::update(const Interest& interest)
37 {
38  this->FaceRecord::update(interest);
39  m_interest = const_cast<Interest&>(interest).shared_from_this();
40 }
41 
42 } // namespace pit
43 } // namespace nfd
InRecord(shared_ptr< Face > face)
contains information about an Interest on an incoming or outgoing face
void update(const Interest &interest)
void update(const Interest &interest)
updates lastNonce, lastRenewed, expiry fields