NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
k
l
n
o
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
f
i
k
l
n
p
q
r
s
t
u
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Enumerations
_
a
c
e
i
r
s
t
v
+
Enumerator
a
c
d
e
f
i
k
l
m
n
p
r
s
u
v
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
f
g
i
k
l
m
n
p
r
s
t
Typedefs
+
Macros
a
d
e
f
i
l
m
n
o
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
Bug List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
ndn-app-link-service.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_APP_LINK_SERVICE_HPP
21
#define NDN_APP_LINK_SERVICE_HPP
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
#include "ns3/ndnSIM/NFD/daemon/face/link-service.hpp"
25
26
namespace
ns3
{
27
28
class
Packet;
29
class
Node;
30
31
namespace
ndn
{
32
33
class
App
;
34
41
class
AppLinkService
:
public
nfd::face::LinkService
42
{
43
public
:
47
AppLinkService
(Ptr<App> app);
48
49
virtual
~AppLinkService
();
50
51
public
:
52
void
53
onReceiveInterest
(
const
Interest
& interest);
54
55
void
56
onReceiveData
(
const
Data
& data);
57
58
void
59
onReceiveNack
(
const
lp::Nack
& nack);
60
61
private
:
62
virtual
void
63
doSendInterest(
const
Interest
& interest)
override
;
64
65
virtual
void
66
doSendData(
const
Data
& data)
override
;
67
68
virtual
void
69
doSendNack(
const
lp::Nack
& nack)
override
;
70
71
virtual
void
72
doReceivePacket(
nfd::face::Transport::Packet
&& packet)
override
73
{
74
// does nothing (all operations for now handled by LinkService)
75
BOOST_ASSERT(
false
);
76
}
77
78
private
:
79
Ptr<Node> m_node;
80
Ptr<App> m_app;
81
};
82
83
}
// namespace ndn
84
}
// namespace ns3
85
86
#endif // NDN_APP_LINK_SERVICE_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::AppLinkService
Implementation of LinkService for ndnSIM application.
Definition:
ndn-app-link-service.hpp:41
nfd::face::LinkService
the upper part of a Face
Definition:
link-service.hpp:77
App
ndn App
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app.cpp:29
nfd::face::Transport::Packet
stores a packet along with the remote endpoint
Definition:
transport.hpp:122
ns3::ndn::AppLinkService::onReceiveInterest
void onReceiveInterest(const Interest &interest)
Definition:
ndn-app-link-service.cpp:79
ns3::ndn::AppLinkService::onReceiveData
void onReceiveData(const Data &data)
Definition:
ndn-app-link-service.cpp:85
ndn::lp::Nack
represents a Network Nack
Definition:
nack.hpp:38
ns3::ndn::AppLinkService::AppLinkService
AppLinkService(Ptr< App > app)
Default constructor.
Definition:
ndn-app-link-service.cpp:35
ns3::ndn::AppLinkService::onReceiveNack
void onReceiveNack(const lp::Nack &nack)
Definition:
ndn-app-link-service.cpp:91
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ndn::tlv::Data
Definition:
tlv.hpp:63
ndn::tlv::Interest
Definition:
tlv.hpp:62
ns3::ndn::AppLinkService::~AppLinkService
virtual ~AppLinkService()
Definition:
ndn-app-link-service.cpp:44
ndnSIM
model
ndn-app-link-service.hpp
Generated on Sun Feb 24 2019 22:16:05 for ndnSIM by
1.8.15