NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
g
i
k
l
m
n
p
r
s
u
w
+
Related Functions
b
c
d
f
i
k
l
n
o
p
s
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
retx-suppression.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
retx-suppression.hpp
"
27
28
namespace
nfd
{
29
namespace
fw {
30
31
time::steady_clock::TimePoint
32
RetxSuppression::getLastOutgoing
(
const
pit::Entry
& pitEntry)
const
33
{
34
const
pit::OutRecordCollection
& outRecords = pitEntry.
getOutRecords
();
35
pit::OutRecordCollection::const_iterator lastOutgoing = std::max_element(
36
outRecords.begin(), outRecords.end(),
37
[] (
const
pit::OutRecord
& a,
const
pit::OutRecord
& b) {
38
return
a.
getLastRenewed
() < b.getLastRenewed();
39
});
40
BOOST_ASSERT(lastOutgoing != outRecords.end());
// otherwise it's new PIT entry
41
42
return
lastOutgoing->getLastRenewed();
43
}
44
45
}
// namespace fw
46
}
// namespace nfd
ndn::time::steady_clock::TimePoint
time_point TimePoint
Definition:
time.hpp:108
nfd::fw::RetxSuppression::getLastOutgoing
time::steady_clock::TimePoint getLastOutgoing(const pit::Entry &pitEntry) const
Definition:
retx-suppression.cpp:32
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::pit::Entry
represents a PIT entry
Definition:
pit-entry.hpp:69
nfd::pit::Entry::getOutRecords
const OutRecordCollection & getOutRecords() const
Definition:
pit-entry.hpp:204
nfd::pit::OutRecordCollection
std::list< OutRecord > OutRecordCollection
represents an unordered collection of OutRecords
Definition:
pit-entry.hpp:51
nfd::pit::OutRecord
contains information about an Interest toward an outgoing face
Definition:
pit-out-record.hpp:36
retx-suppression.hpp
nfd::pit::FaceRecord::getLastRenewed
time::steady_clock::TimePoint getLastRenewed() const
Definition:
pit-face-record.hpp:86
ndnSIM
NFD
daemon
fw
retx-suppression.cpp
Generated on Sat Nov 12 2016 16:02:54 for ndnSIM by
1.8.12