blob: 48f45b304704476908bafb98a3b6f6f25eba9c66 [file] [log] [blame]
Junxiao Shi2d9bdc82014-03-02 20:55:42 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#ifndef NFD_FW_CLIENT_CONTROL_STRATEGY_HPP
8#define NFD_FW_CLIENT_CONTROL_STRATEGY_HPP
9
10#include "best-route-strategy.hpp"
11
12namespace nfd {
13namespace fw {
14
15/** \brief a forwarding strategy that forwards Interests
16 * according to NextHopFaceId field in LocalControlHeader
17 */
18class ClientControlStrategy : public BestRouteStrategy
19{
20public:
21 explicit
22 ClientControlStrategy(Forwarder& forwarder);
23
24 virtual
25 ~ClientControlStrategy();
26
27 virtual void
28 afterReceiveInterest(const Face& inFace,
29 const Interest& interest,
30 shared_ptr<fib::Entry> fibEntry,
31 shared_ptr<pit::Entry> pitEntry);
32};
33
34} // namespace fw
35} // namespace nfd
36
37#endif // NFD_FW_CLIENT_CONTROL_STRATEGY_HPP