NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
pit-face-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_FACE_RECORD_HPP
27
#define NFD_DAEMON_TABLE_PIT_FACE_RECORD_HPP
28
29
#include "
face/face.hpp
"
30
#include "
strategy-info-host.hpp
"
31
32
namespace
nfd
{
33
namespace
pit {
34
40
class
FaceRecord
:
public
StrategyInfoHost
41
{
42
public
:
43
explicit
44
FaceRecord
(
Face
& face);
45
46
Face
&
47
getFace
()
const
;
48
49
uint32_t
50
getLastNonce
()
const
;
51
52
time::steady_clock::TimePoint
53
getLastRenewed
()
const
;
54
58
time::steady_clock::TimePoint
59
getExpiry
()
const
;
60
63
void
64
update
(
const
Interest
& interest);
65
66
private
:
67
Face
& m_face;
68
uint32_t m_lastNonce;
69
time::steady_clock::TimePoint
m_lastRenewed;
70
time::steady_clock::TimePoint
m_expiry;
71
};
72
73
inline
Face
&
74
FaceRecord::getFace
()
const
75
{
76
return
m_face;
77
}
78
79
inline
uint32_t
80
FaceRecord::getLastNonce
()
const
81
{
82
return
m_lastNonce;
83
}
84
85
inline
time::steady_clock::TimePoint
86
FaceRecord::getLastRenewed
()
const
87
{
88
return
m_lastRenewed;
89
}
90
91
inline
time::steady_clock::TimePoint
92
FaceRecord::getExpiry
()
const
93
{
94
return
m_expiry;
95
}
96
97
}
// namespace pit
98
}
// namespace nfd
99
100
#endif // NFD_DAEMON_TABLE_PIT_FACE_RECORD_HPP
ndn::time::steady_clock::TimePoint
time_point TimePoint
Definition:
time.hpp:225
face.hpp
nfd::face::Face
generalization of a network interface
Definition:
face.hpp:67
nfd::StrategyInfoHost
base class for an entity onto which StrategyInfo items may be placed
Definition:
strategy-info-host.hpp:35
ndn::Interest
Represents an Interest packet.
Definition:
interest.hpp:44
nfd::pit::FaceRecord::FaceRecord
FaceRecord(Face &face)
Definition:
pit-face-record.cpp:31
nfd::pit::FaceRecord::getFace
Face & getFace() const
Definition:
pit-face-record.hpp:74
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::pit::FaceRecord
contains information about an Interest on an incoming or outgoing face
Definition:
pit-face-record.hpp:40
nfd::pit::FaceRecord::getLastNonce
uint32_t getLastNonce() const
Definition:
pit-face-record.hpp:80
nfd::pit::FaceRecord::getExpiry
time::steady_clock::TimePoint getExpiry() const
gives the time point this record expires
Definition:
pit-face-record.hpp:92
strategy-info-host.hpp
nfd::pit::FaceRecord::update
void update(const Interest &interest)
updates lastNonce, lastRenewed, expiry fields
Definition:
pit-face-record.cpp:40
nfd::pit::FaceRecord::getLastRenewed
time::steady_clock::TimePoint getLastRenewed() const
Definition:
pit-face-record.hpp:86
ndnSIM
NFD
daemon
table
pit-face-record.hpp
Generated on Sun Feb 24 2019 22:16:07 for ndnSIM by
1.8.15