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-producer.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_PRODUCER_H
21
#define NDN_PRODUCER_H
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
25
#include "
ndn-app.hpp
"
26
#include "ns3/ndnSIM/model/ndn-common.hpp"
27
28
#include "ns3/nstime.h"
29
#include "ns3/ptr.h"
30
31
namespace
ns3
{
32
namespace
ndn
{
33
43
class
Producer
:
public
App
{
44
public
:
45
static
TypeId
46
GetTypeId
(
void
);
47
48
Producer
();
49
50
// inherited from NdnApp
51
virtual
void
52
OnInterest
(shared_ptr<const Interest> interest);
53
54
protected
:
55
// inherited from Application base class.
56
virtual
void
57
StartApplication
();
// Called at time specified by Start
58
59
virtual
void
60
StopApplication
();
// Called at time specified by Stop
61
62
private
:
63
Name
m_prefix;
64
Name
m_postfix;
65
uint32_t m_virtualPayloadSize;
66
Time m_freshness;
67
68
uint32_t m_signature;
69
Name
m_keyLocator;
70
};
71
72
}
// namespace ndn
73
}
// namespace ns3
74
75
#endif // NDN_PRODUCER_H
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::Producer::GetTypeId
static TypeId GetTypeId(void)
Definition:
ndn-producer.cpp:40
ns3::ndn::Producer::StopApplication
virtual void StopApplication()
Called at time specified by Stop.
Definition:
ndn-producer.cpp:86
ns3::ndn::Producer::StartApplication
virtual void StartApplication()
Called at time specified by Start.
Definition:
ndn-producer.cpp:77
ndn-app.hpp
ns3::ndn::Name
Name
Definition:
ndn-common.cpp:25
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::Producer::OnInterest
virtual void OnInterest(shared_ptr< const Interest > interest)
Method that will be called every time new Interest arrives.
Definition:
ndn-producer.cpp:94
ns3::ndn::App
Base class that all NDN applications should be derived from.
Definition:
ndn-app.hpp:48
ns3::ndn::Producer
A simple Interest-sink applia simple Interest-sink application.
Definition:
ndn-producer.hpp:43
ns3::ndn::Producer::Producer
Producer()
Definition:
ndn-producer.cpp:70
ndnSIM
apps
ndn-producer.hpp
Generated on Sun Feb 24 2019 22:16:05 for ndnSIM by
1.8.15