blob: ed1233f0e28502d5e09cdf4f78d2e5b66bb27f4e [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "strategy.hpp"
namespace nfd {
Strategy::Strategy(Forwarder& fw)
: m_fw(fw)
{
}
Strategy::~Strategy()
{
}
void
Strategy::sendInterest(shared_ptr<pit::Entry> pitEntry,
shared_ptr<Face> outFace)
{
m_fw.onOutgoingInterest(pitEntry, *outFace);
}
void
Strategy::rebuffPendingInterest(shared_ptr<pit::Entry> pitEntry)
{
m_fw.onInterestRebuff(pitEntry);
}
} // namespace nfd