NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
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:120
nfd::face::Face
generalization of a network interface
Definition:
face.hpp:67
nfd::fw::RetxSuppression::SUPPRESS
Interest is retransmission and should be suppressed.
Definition:
retx-suppression.hpp:50
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:42
nfd::fw::RetxSuppression::NEW
Interest is new (not a retransmission)
Definition:
retx-suppression.hpp:42
nfd::fw::RetxSuppression::getLastOutgoing
time::steady_clock::TimePoint getLastOutgoing(const pit::Entry &pitEntry) const
Definition:
retx-suppression.cpp:32
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...
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::pit::Entry
an Interest table entry
Definition:
pit-entry.hpp:57
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
ndnSIM
NFD
daemon
fw
retx-suppression.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13