NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
app-face.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_MGMT_APP_FACE_HPP
27 #define NFD_DAEMON_MGMT_APP_FACE_HPP
28 
29 #include "common.hpp"
30 
31 #include <ndn-cxx/security/key-chain.hpp>
32 
33 namespace nfd {
34 
35 typedef function<void(const Name&, const Interest&)> OnInterest;
36 
37 class AppFace
38 {
39 public:
40  virtual void
41  setInterestFilter(const Name& filter,
42  OnInterest onInterest) = 0;
43 
44  virtual void
45  put(const Data& data) = 0;
46 
47  virtual
48  ~AppFace() { }
49 };
50 
51 } // namespace nfd
52 
53 #endif // NFD_DAEMON_MGMT_APP_FACE_HPP
virtual void put(const Data &data)=0
virtual void setInterestFilter(const Name &filter, OnInterest onInterest)=0
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
Name abstraction to represent an absolute name.
Definition: name.hpp:46
function< void(const Name &, const Interest &)> OnInterest
Definition: app-face.hpp:35
represents a Data packet
Definition: data.hpp:39
virtual ~AppFace()
Definition: app-face.hpp:48