Files
NFD/daemon/fw/strategy.cpp
T
Junxiao Shi 8c8d2187b3 fw: integrate forwarder, strategy, tables
refs #1131, #1136

Change-Id: Ica58341cdc1ea1dc421693a87f35fc50177a707d
2014-01-31 00:53:45 -07:00

38 lines
692 B
C++

/* -*- 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"
#include "forwarder.hpp"
namespace nfd {
namespace fw {
Strategy::Strategy(Forwarder& forwarder)
: m_forwarder(forwarder)
{
}
Strategy::~Strategy()
{
}
void
Strategy::sendInterest(shared_ptr<pit::Entry> pitEntry,
shared_ptr<Face> outFace)
{
m_forwarder.onOutgoingInterest(pitEntry, *outFace);
}
void
Strategy::rebuffPendingInterest(shared_ptr<pit::Entry> pitEntry)
{
m_forwarder.onInterestRebuff(pitEntry);
}
} // namespace fw
} // namespace nfd