| /* -*- 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" |
| /** \brief a forwarding strategy that forwards Interests |
| * according to NextHopFaceId field in LocalControlHeader |
| class ClientControlStrategy : public BestRouteStrategy |
| ClientControlStrategy(Forwarder& forwarder, const Name& name = STRATEGY_NAME); |
| ~ClientControlStrategy(); |
| afterReceiveInterest(const Face& inFace, |
| const Interest& interest, |
| shared_ptr<fib::Entry> fibEntry, |
| shared_ptr<pit::Entry> pitEntry); |
| static const Name STRATEGY_NAME; |
| #endif // NFD_FW_CLIENT_CONTROL_STRATEGY_HPP |