blob: ed1233f0e28502d5e09cdf4f78d2e5b66bb27f4e [file] [log] [blame]
Junxiao Shid3c792f2014-01-30 00:46:13 -07001/* -*- 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
9namespace nfd {
10
11Strategy::Strategy(Forwarder& fw)
12 : m_fw(fw)
13{
14}
15
16Strategy::~Strategy()
17{
18}
19
20
21void
22Strategy::sendInterest(shared_ptr<pit::Entry> pitEntry,
23 shared_ptr<Face> outFace)
24{
25 m_fw.onOutgoingInterest(pitEntry, *outFace);
26}
27
28void
29Strategy::rebuffPendingInterest(shared_ptr<pit::Entry> pitEntry)
30{
31 m_fw.onInterestRebuff(pitEntry);
32}
33
34} // namespace nfd