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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
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
ns3::ndn::Producer::GetTypeId
static TypeId GetTypeId(void)
Definition:
ndn-producer.cpp:42
ns3::ndn::Producer::StopApplication
virtual void StopApplication()
Called at time specified by Stop.
Definition:
ndn-producer.cpp:88
ns3::ndn::Producer::StartApplication
virtual void StartApplication()
Called at time specified by Start.
Definition:
ndn-producer.cpp:79
ndn-app.hpp
ns3::ndn::Name
Name
Definition:
ndn-common.cpp:25
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:96
ns3::ndn::App
Base class that all NDN applications should be derived from.
Definition:
ndn-app.hpp:47
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:72
ndnSIM
apps
ndn-producer.hpp
Generated on Wed Feb 18 2015 16:31:16 for ndnSIM by
1.8.7