NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
59
virtual
void
60
sendInterest
(
const
Interest
& interest);
61
65
virtual
void
66
sendData
(
const
Data
& data);
67
71
void
72
onReceiveInterest
(
const
Interest
& interest);
73
77
void
78
onReceiveData
(
const
Data
& data);
79
80
virtual
void
81
close
();
82
83
private
:
84
Ptr<Node> m_node;
85
Ptr<App> m_app;
86
};
87
88
}
// namespace ndn
89
}
// namespace ns3
90
91
#endif // NDN_APP_FACE_H
ns3::ndn::AppFace::sendInterest
virtual void sendInterest(const Interest &interest)
Send Interest towards application.
Definition:
ndn-app-face.cpp:57
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
App
ndn App
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app.cpp:28
ns3::ndn::AppFace::onReceiveData
void onReceiveData(const Data &data)
Send Data towards NFD.
Definition:
ndn-app-face.cpp:85
ns3::ndn::AppFace
Implementation of application Ndn face.
Definition:
ndn-app-face.hpp:46
ns3::ndn::AppFace::onReceiveInterest
void onReceiveInterest(const Interest &interest)
Send Interest towards NFD.
Definition:
ndn-app-face.cpp:79
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::Data
ns3::ndn::AppFace::~AppFace
virtual ~AppFace()
Definition:
ndn-app-face.cpp:45
ns3::ndn::Interest
ns3::ndn::AppFace::sendData
virtual void sendData(const Data &data)
Send Data towards application.
Definition:
ndn-app-face.cpp:68
nfd::LocalFace
represents a face
Definition:
local-face.hpp:40
ns3::ndn::AppFace::close
virtual void close()
Close the face.
Definition:
ndn-app-face.cpp:51
ns3::ndn::AppFace::AppFace
AppFace(Ptr< App > app)
Default constructor.
Definition:
ndn-app-face.cpp:35
ndnSIM
model
ndn-app-face.hpp
Generated on Tue Feb 23 2016 22:18:43 for ndnSIM by
1.8.11