NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ndn-consumer-batches.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_CONSUMER_BATCHES_H
21
#define NDN_CONSUMER_BATCHES_H
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
25
#include "
ndn-consumer.hpp
"
26
#include "ns3/traced-value.h"
27
#include "ns3/ndnSIM/utils/batches.hpp"
28
29
namespace
ns3
{
30
namespace
ndn
{
31
36
class
ConsumerBatches
:
public
Consumer
{
37
public
:
38
static
TypeId
39
GetTypeId
();
40
44
ConsumerBatches
();
45
46
private
:
47
virtual
void
48
StartApplication();
49
50
void
51
AddBatch(uint32_t amount);
52
53
protected
:
58
virtual
void
59
ScheduleNextPacket
();
60
61
private
:
62
bool
m_initial;
63
64
Batches
m_batches;
65
};
66
67
}
// namespace ndn
68
}
// namespace ns3
69
70
#endif
ns3::ndn::ConsumerBatches::GetTypeId
static TypeId GetTypeId()
Definition:
ndn-consumer-batches.cpp:40
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn-consumer.hpp
ns3::ndn::ConsumerBatches
Ndn application for sending out Interest packets in batches.
Definition:
ndn-consumer-batches.hpp:36
ns3::ndn::Consumer
NDN application for sending out Interest packets.
Definition:
ndn-consumer.hpp:49
ns3::ndn::ConsumerBatches::ScheduleNextPacket
virtual void ScheduleNextPacket()
Constructs the Interest packet and sends it using a callback to the underlying NDN protocol...
Definition:
ndn-consumer-batches.cpp:86
ns3::Batches
Class representing sets of (time, number) tuples with support of reading writing to streams...
Definition:
batches.hpp:36
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::ConsumerBatches::ConsumerBatches
ConsumerBatches()
Default constructor.
Definition:
ndn-consumer-batches.cpp:57
ndnSIM
apps
ndn-consumer-batches.hpp
Generated on Thu Nov 2 2017 03:30:28 for ndnSIM by
1.8.11