NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
retx-suppression-fixed.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_FIXED_HPP
27 #define NFD_DAEMON_FW_RETX_SUPPRESSION_FIXED_HPP
28 
29 #include "retx-suppression.hpp"
30 
31 namespace nfd {
32 namespace fw {
33 
38 {
39 public:
40  explicit
41  RetxSuppressionFixed(const time::milliseconds& minRetxInterval = DEFAULT_MIN_RETX_INTERVAL);
42 
46  virtual Result
47  decide(const Face& inFace, const Interest& interest,
48  pit::Entry& pitEntry) const DECL_OVERRIDE;
49 
50 public:
51  static const time::milliseconds DEFAULT_MIN_RETX_INTERVAL;
52 
53 private:
54  const time::milliseconds m_minRetxInterval;
55 };
56 
57 } // namespace fw
58 } // namespace nfd
59 
60 #endif // NFD_DAEMON_FW_RETX_SUPPRESSION_FIXED_HPP
static const time::milliseconds DEFAULT_MIN_RETX_INTERVAL
a retransmission suppression decision algorithm that suppresses retransmissions within a fixed durati...
virtual Result decide(const Face &inFace, const Interest &interest, pit::Entry &pitEntry) const 1
determines whether Interest is a retransmission, and if so, whether it shall be forwarded or suppress...
represents an Interest packet
Definition: interest.hpp:45
#define DECL_OVERRIDE
expands to 'override' if compiler supports this feature, otherwise expands to nothing ...
Definition: common.hpp:49
represents a face
Definition: face.hpp:57
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
represents a PIT entry
Definition: pit-entry.hpp:67
helper for consumer retransmission suppression
RetxSuppressionFixed(const time::milliseconds &minRetxInterval=DEFAULT_MIN_RETX_INTERVAL)