NFD - Named Data Networking Forwarding Daemon 0.5.0 documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
pit::OutRecordCollection::const_iterator lastOutgoing = std::max_element(
35
pitEntry.
out_begin
(), pitEntry.
out_end
(),
36
[] (
const
pit::OutRecord
& a,
const
pit::OutRecord
& b) {
37
return
a.
getLastRenewed
() < b.getLastRenewed();
38
});
39
BOOST_ASSERT(lastOutgoing != pitEntry.
out_end
());
// otherwise it's new PIT entry
40
41
return
lastOutgoing->getLastRenewed();
42
}
43
44
}
// namespace fw
45
}
// namespace nfd
nfd::pit::FaceRecord::getLastRenewed
time::steady_clock::TimePoint getLastRenewed() const
Definition:
pit-face-record.hpp:86
nfd::pit::OutRecord
contains information about an Interest toward an outgoing face
Definition:
pit-out-record.hpp:36
nfd::fw::RetxSuppression::getLastOutgoing
time::steady_clock::TimePoint getLastOutgoing(const pit::Entry &pitEntry) const
Definition:
retx-suppression.cpp:32
nfd::pit::Entry
an Interest table entry
Definition:
pit-entry.hpp:57
nfd
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition:
algorithm.hpp:32
nfd::pit::Entry::out_begin
OutRecordCollection::iterator out_begin()
Definition:
pit-entry.hpp:170
nfd::pit::Entry::out_end
OutRecordCollection::iterator out_end()
Definition:
pit-entry.hpp:182
retx-suppression.hpp
daemon
fw
retx-suppression.cpp
Generated on Tue Oct 4 2016 19:45:20 for NFD - Named Data Networking Forwarding Daemon by
1.8.9.1