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
Classes
Files
File List
File Members
retx-suppression.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FW_RETX_SUPPRESSION_HPP
27
#define NFD_DAEMON_FW_RETX_SUPPRESSION_HPP
28
29
#include "
strategy.hpp
"
30
31
namespace
nfd
{
32
namespace
fw {
33
36
class
RetxSuppression
: noncopyable
37
{
38
public
:
39
enum
Result
{
42
NEW
,
43
46
FORWARD
,
47
50
SUPPRESS
51
};
52
56
virtual
Result
57
decide
(
const
Face
& inFace,
const
Interest
& interest,
pit::Entry
& pitEntry)
const
= 0;
58
59
protected
:
63
time::steady_clock::TimePoint
64
getLastOutgoing
(
const
pit::Entry
& pitEntry)
const
;
65
};
66
67
}
// namespace fw
68
}
// namespace nfd
69
70
#endif // NFD_DAEMON_FW_RETX_SUPPRESSION_HPP
ndn::time::steady_clock::TimePoint
time_point TimePoint
Definition:
time.hpp:108
nfd::fw::RetxSuppression::SUPPRESS
Interest is retransmission and should be suppressed.
Definition:
retx-suppression.hpp:50
nfd::fw::RetxSuppression::getLastOutgoing
time::steady_clock::TimePoint getLastOutgoing(const pit::Entry &pitEntry) const
Definition:
retx-suppression.cpp:32
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:45
nfd::Face
represents a face
Definition:
face.hpp:57
nfd::fw::RetxSuppression::NEW
Interest is new (not a retransmission)
Definition:
retx-suppression.hpp:42
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
nfd::pit::Entry
represents a PIT entry
Definition:
pit-entry.hpp:67
strategy.hpp
nfd::fw::RetxSuppression::FORWARD
Interest is retransmission and should be forwarded.
Definition:
retx-suppression.hpp:46
nfd::fw::RetxSuppression
helper for consumer retransmission suppression
Definition:
retx-suppression.hpp:36
nfd::fw::RetxSuppression::Result
Result
Definition:
retx-suppression.hpp:39
nfd::fw::RetxSuppression::decide
virtual Result decide(const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const =0
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppress...
ndnSIM
NFD
daemon
fw
retx-suppression.hpp
Generated on Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11