Files
NFD/daemon/fw/client-control-strategy.hpp
T
Junxiao Shi f3c0781d22 fw: refine pipelines, dispatch to strategy
refs #1345 #1255

Change-Id: If1cfc26049f87318103fc09c3b211ebf1eb3ebaa
2014-03-11 22:33:15 -07:00

40 lines
1005 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.
*/
#ifndef NFD_FW_CLIENT_CONTROL_STRATEGY_HPP
#define NFD_FW_CLIENT_CONTROL_STRATEGY_HPP
#include "best-route-strategy.hpp"
namespace nfd {
namespace fw {
/** \brief a forwarding strategy that forwards Interests
* according to NextHopFaceId field in LocalControlHeader
*/
class ClientControlStrategy : public BestRouteStrategy
{
public:
ClientControlStrategy(Forwarder& forwarder, const Name& name = STRATEGY_NAME);
virtual
~ClientControlStrategy();
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_CLIENT_CONTROL_STRATEGY_HPP