NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ndn-app-face.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20 #ifndef NDN_APP_FACE_H
21 #define NDN_APP_FACE_H
22 
23 #include "ns3/ndnSIM/model/ndn-common.hpp"
24 #include "ns3/ndnSIM/NFD/daemon/face/local-face.hpp"
25 #include "ns3/ndnSIM/model/ndn-face.hpp"
26 
27 namespace ns3 {
28 
29 class Packet;
30 class Node;
31 
32 namespace ndn {
33 
34 class App;
35 
46 class AppFace : public nfd::LocalFace {
47 public:
51  AppFace(Ptr<App> app);
52 
53  virtual ~AppFace();
54 
55 public: // from nfd::Face
61  virtual void
62  sendInterest(const Interest& interest);
63 
69  virtual void
70  sendData(const Data& data);
71 
72  virtual void
73  close();
74 
75 private:
76  Ptr<Node> m_node;
77  Ptr<App> m_app;
78 };
79 
80 } // namespace ndn
81 } // namespace ns3
82 
83 #endif // NDN_APP_FACE_H
virtual void sendInterest(const Interest &interest)
Send Interest towards application.
ndn App
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-app.cpp:28
Implementation of application Ndn face.
virtual void sendData(const Data &data)
Send Data towards application.
represents a face
Definition: local-face.hpp:39
virtual void close()
Close the face.
AppFace(Ptr< App > app)
Default constructor.