Files
NFD/daemon/mgmt/app-face.hpp
T
Steve DiBenedetto bdedce9252 mgmt: moved signing into AppFace, code streamlining, and bug fixes
tests/management: improved callback validation

Fixed bad shared_ptr NULL checks
Fixed bad iterator decrement in InternalFace.sendInterest
Removed semi-useless constants in FibManager
Clarified ControlResponse text messages

Change-Id: Ic327a0b6b57827e401c7c3115d0ee92bae996a34
refs: #1138
2014-02-03 12:06:20 -07:00

41 lines
731 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_MGMT_APP_FACE_HPP
#define NFD_MGMT_APP_FACE_HPP
#include "common.hpp"
#include <ndn-cpp-dev/security/key-chain.hpp>
namespace nfd {
typedef function<void(const Name&, const Interest&)> OnInterest;
class AppFace
{
public:
virtual void
setInterestFilter(const Name& filter,
OnInterest onInterest) = 0;
virtual void
sign(Data& data);
virtual void
put(const Data& data) = 0;
virtual
~AppFace() { }
protected:
ndn::KeyChain m_keyChain;
};
} // namespace nfd
#endif //NFD_MGMT_APP_FACE_HPP