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-window.hpp b/apps/ndn-consumer-window.hpp
index 923cae0..0d0536f 100644
--- a/apps/ndn-consumer-window.hpp
+++ b/apps/ndn-consumer-window.hpp
@@ -22,6 +22,8 @@
#ifndef NDN_CONSUMER_WINDOW_H
#define NDN_CONSUMER_WINDOW_H
+#include "ns3/ndnSIM/model/ndn-common.hpp"
+
#include "ndn-consumer.hpp"
#include "ns3/traced-value.h"
@@ -48,13 +50,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);
virtual void
OnTimeout(uint32_t sequenceNumber);