blob: 4b16cc16a5ad1be6b072e994cb6c3e962edbb02d [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_MGMT_INTERNAL_FACE_HPP
#define NFD_MGMT_INTERNAL_FACE_HPP
#include "face/face.hpp"
#include "app-face.hpp"
namespace nfd {
class FibManager;
class InternalFace : public Face, public AppFace
{
public:
explicit
InternalFace(FibManager& manager);
// Overridden Face methods for forwarder
virtual void
sendInterest(const Interest& interest);
virtual void
sendData(const Data& data);
// Methods implementing AppFace interface. Do not invoke from forwarder.
virtual void
setInterestFilter(const Name& filter,
OnInterest onInterest);
virtual void
put(const Data& data);
virtual
~InternalFace();
private:
// void
// onConfig(ConfigFile::Node section, bool isDryRun);
std::map<Name, OnInterest> m_interestFilters;
FibManager& m_fibManager; // for mock only
};
} // namespace nfd
#endif //NFD_MGMT_INTERNAL_FACE_HPP