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 = STRATEGY_NAME);
57 
58  virtual void
59  afterReceiveInterest(const Face& inFace, const Interest& interest,
60  const shared_ptr<pit::Entry>& pitEntry) override;
61 
62  virtual void
63  afterReceiveNack(const Face& inFace, const lp::Nack& nack,
64  const shared_ptr<pit::Entry>& pitEntry) override;
65 
66 public:
67  static const Name STRATEGY_NAME;
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
Best Route strategy version 4.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
a retransmission suppression decision algorithm that suppresses retransmissions using exponential bac...
BestRouteStrategy2(Forwarder &forwarder, const Name &name=STRATEGY_NAME)
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:38
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
Definition: common.hpp:39