blob: 41868ed74c42841c1bae5a6aacee5297467bff61 [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.
*/
#ifndef NFD_FW_BROADCAST_STRATEGY_HPP
#define NFD_FW_BROADCAST_STRATEGY_HPP
#include "strategy.hpp"
namespace nfd {
namespace fw {
/** \class BroadcastStrategy
* \brief a forwarding strategy that forwards Interest
* to all nexthops
*/
class BroadcastStrategy : public Strategy
{
public:
explicit
BroadcastStrategy(Forwarder& forwarder);
virtual
~BroadcastStrategy();
virtual void
afterReceiveInterest(const Face& inFace,
const Interest& interest,
shared_ptr<fib::Entry> fibEntry,
shared_ptr<pit::Entry> pitEntry);
};
} // namespace fw
} // namespace nfd
#endif // NFD_FW_BROADCAST_STRATEGY_HPP