NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
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 
45 
46 private:
47  virtual void
48  StartApplication();
49 
50  void
51  AddBatch(uint32_t amount);
52 
53 protected:
58  virtual void
60 
61 private:
62  bool m_initial;
63 
64  Batches m_batches;
65 };
66 
67 } // namespace ndn
68 } // namespace ns3
69 
70 #endif
Copyright (c) 2011-2015 Regents of the University of California.
Ndn application for sending out Interest packets in batches.
NDN application for sending out Interest packets.
virtual void ScheduleNextPacket()
Constructs the Interest packet and sends it using a callback to the underlying NDN protocol...
Class representing sets of (time, number) tuples with support of reading writing to streams...
Definition: batches.hpp:36
Copyright (c) 2011-2015 Regents of the University of California.
ConsumerBatches()
Default constructor.