best-route-strategy2.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_FW_BEST_ROUTE_STRATEGY2_HPP
27 #define NFD_DAEMON_FW_BEST_ROUTE_STRATEGY2_HPP
28 
29 #include "strategy.hpp"
31 
32 namespace nfd {
33 namespace fw {
34 
53 {
54 public:
55  explicit
56  BestRouteStrategy2(Forwarder& forwarder, const Name& name = getStrategyName());
57 
58  static const Name&
60 
61  virtual void
62  afterReceiveInterest(const Face& inFace, const Interest& interest,
63  const shared_ptr<pit::Entry>& pitEntry) override;
64 
65  virtual void
66  afterReceiveNack(const Face& inFace, const lp::Nack& nack,
67  const shared_ptr<pit::Entry>& pitEntry) override;
68 
70  static const time::milliseconds RETX_SUPPRESSION_INITIAL;
71  static const time::milliseconds RETX_SUPPRESSION_MAX;
72  RetxSuppressionExponential m_retxSuppression;
73 };
74 
75 } // namespace fw
76 } // namespace nfd
77 
78 #endif // NFD_DAEMON_FW_BEST_ROUTE_STRATEGY2_HPP
main class of NFD
Definition: forwarder.hpp:52
static const Name & getStrategyName()
BestRouteStrategy2(Forwarder &forwarder, const Name &name=getStrategyName())
Best Route strategy version 4.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
a retransmission suppression decision algorithm that suppresses retransmissions using exponential bac...
virtual void afterReceiveNack(const Face &inFace, const lp::Nack &nack, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Nack is received
virtual void afterReceiveInterest(const Face &inFace, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Interest is received
represents a forwarding strategy
Definition: strategy.hpp:37
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
Definition: common.hpp:40