ndnSIM-v2: Initial implementation
- Name, name::Components, Interest, Data now use ndn-cxx
- Ptr is replaced with shared_ptr for ndn-cxx structures
Credits for the change also to Mickey Sweat, Wentao Shang, and Alex Afanasyev
diff --git a/apps/ndn-consumer.hpp b/apps/ndn-consumer.hpp
index 83ece12..25de4cd 100644
--- a/apps/ndn-consumer.hpp
+++ b/apps/ndn-consumer.hpp
@@ -22,9 +22,10 @@
#ifndef NDN_CONSUMER_H
#define NDN_CONSUMER_H
+#include "ns3/ndnSIM/model/ndn-common.hpp"
+
#include "ndn-app.hpp"
#include "ns3/random-variable.h"
-#include "ns3/ndn-name.hpp"
#include "ns3/nstime.h"
#include "ns3/data-rate.h"
#include "ns3/ndn-rtt-estimator.hpp"
@@ -58,13 +59,13 @@
// From App
// virtual void
- // OnInterest (const Ptr<const Interest> &interest);
+ // OnInterest (const shared_ptr<const Interest> &interest);
virtual void
- OnNack(Ptr<const Interest> interest);
+ OnNack(shared_ptr<const Interest> interest);
virtual void
- OnData(Ptr<const Data> contentObject);
+ OnData(shared_ptr<const Data> contentObject);
/**
* @brief Timeout event