blob: 69c6ce6065e269bd5b53468de5ea053813788043 [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:
BroadcastStrategy(Forwarder& forwarder, const Name& name = STRATEGY_NAME);
virtual
~BroadcastStrategy();
virtual void
afterReceiveInterest(const Face& inFace,
const Interest& interest,
shared_ptr<fib::Entry> fibEntry,
shared_ptr<pit::Entry> pitEntry);
public:
static const Name STRATEGY_NAME;
};
} // namespace fw
} // namespace nfd
#endif // NFD_FW_BROADCAST_STRATEGY_HPP