Junxiao Shi | d3c792f | 2014-01-30 00:46:13 -0700 | [diff] [blame^] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #include "strategy.hpp" |
| 8 | |
| 9 | namespace nfd { |
| 10 | |
| 11 | Strategy::Strategy(Forwarder& fw) |
| 12 | : m_fw(fw) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | Strategy::~Strategy() |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | |
| 21 | void |
| 22 | Strategy::sendInterest(shared_ptr<pit::Entry> pitEntry, |
| 23 | shared_ptr<Face> outFace) |
| 24 | { |
| 25 | m_fw.onOutgoingInterest(pitEntry, *outFace); |
| 26 | } |
| 27 | |
| 28 | void |
| 29 | Strategy::rebuffPendingInterest(shared_ptr<pit::Entry> pitEntry) |
| 30 | { |
| 31 | m_fw.onInterestRebuff(pitEntry); |
| 32 | } |
| 33 | |
| 34 | } // namespace nfd |