NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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
represents an Interest packet
Definition: interest.hpp:45
InRecord(shared_ptr< Face > face)
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
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