NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
client-control-strategy.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_FW_CLIENT_CONTROL_STRATEGY_HPP
27 #define NFD_DAEMON_FW_CLIENT_CONTROL_STRATEGY_HPP
28 
29 #include "best-route-strategy.hpp"
30 
31 namespace nfd {
32 namespace fw {
33 
38 {
39 public:
40  explicit
42 
43  virtual void
44  afterReceiveInterest(const Face& inFace, const Interest& interest,
45  const shared_ptr<pit::Entry>& pitEntry) override;
46 
47 public:
48  static const Name STRATEGY_NAME;
49 
50 private:
51  bool m_isFirstUse = true;
52 };
53 
54 } // namespace fw
55 } // namespace nfd
56 
57 #endif // NFD_DAEMON_FW_CLIENT_CONTROL_STRATEGY_HPP
ClientControlStrategy(Forwarder &forwarder, const Name &name=STRATEGY_NAME)
generalization of a network interface
Definition: face.hpp:67
identical to BestRouteStrategy v1, for backwards compatibility
main class of NFD
Definition: forwarder.hpp:54
represents an Interest packet
Definition: interest.hpp:42
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
Best Route strategy version 1.
virtual void afterReceiveInterest(const Face &inFace, const Interest &interest, const shared_ptr< pit::Entry > &pitEntry) override
trigger after Interest is received
Name abstraction to represent an absolute name.
Definition: name.hpp:46