NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn-consumer-cbr.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_CONSUMER_CBR_H
21
#define NDN_CONSUMER_CBR_H
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
25
#include "
ndn-consumer.hpp
"
26
27
namespace
ns3
{
28
namespace
ndn
{
29
34
class
ConsumerCbr
:
public
Consumer
{
35
public
:
36
static
TypeId
37
GetTypeId
();
38
43
ConsumerCbr
();
44
virtual
~ConsumerCbr
();
45
46
protected
:
51
virtual
void
52
ScheduleNextPacket
();
53
58
void
59
SetRandomize
(
const
std::string&
value
);
60
65
std::string
66
GetRandomize
()
const
;
67
68
protected
:
69
double
m_frequency
;
// Frequency of interest packets (in hertz)
70
bool
m_firstTime
;
71
Ptr<RandomVariableStream>
m_random
;
72
std::string
m_randomType
;
73
};
74
75
}
// namespace ndn
76
}
// namespace ns3
77
78
#endif
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::ConsumerCbr::m_random
Ptr< RandomVariableStream > m_random
Definition:
ndn-consumer-cbr.hpp:71
ndn-consumer.hpp
ns3::ndn::ConsumerCbr::m_firstTime
bool m_firstTime
Definition:
ndn-consumer-cbr.hpp:70
ns3::ndn::ConsumerCbr::GetTypeId
static TypeId GetTypeId()
Definition:
ndn-consumer-cbr.cpp:40
ns3::ndn::ConsumerCbr::~ConsumerCbr
virtual ~ConsumerCbr()
Definition:
ndn-consumer-cbr.cpp:74
ns3::ndn::ConsumerCbr::m_frequency
double m_frequency
Definition:
ndn-consumer-cbr.hpp:69
ns3::ndn::ConsumerCbr
Ndn application for sending out Interest packets at a "constant" rate (Poisson process) ...
Definition:
ndn-consumer-cbr.hpp:34
ns3::ndn::Consumer
NDN application for sending out Interest packets.
Definition:
ndn-consumer.hpp:49
ns3::ndn::ConsumerCbr::SetRandomize
void SetRandomize(const std::string &value)
Set type of frequency randomization.
Definition:
ndn-consumer-cbr.cpp:95
ns3::ndn::ConsumerCbr::m_randomType
std::string m_randomType
Definition:
ndn-consumer-cbr.hpp:72
ns3::ndn::ConsumerCbr::ScheduleNextPacket
virtual void ScheduleNextPacket()
Constructs the Interest packet and sends it using a callback to the underlying NDN protocol...
Definition:
ndn-consumer-cbr.cpp:79
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app-link-service.cpp:32
ns3::ndn::ConsumerCbr::ConsumerCbr
ConsumerCbr()
Default constructor Sets up randomizer function and packet sequence number.
Definition:
ndn-consumer-cbr.cpp:66
websocketpp::session::state::value
value
Definition:
connection.hpp:179
ns3::ndn::ConsumerCbr::GetRandomize
std::string GetRandomize() const
Get type of frequency randomization.
Definition:
ndn-consumer-cbr.cpp:114
ndnSIM
apps
ndn-consumer-cbr.hpp
Generated on Fri May 6 2022 12:34:10 for ndnSIM by
1.8.13