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/model/ndn-app-face.cpp b/model/ndn-app-face.cpp
index d267f6b..bc788e9 100644
--- a/model/ndn-app-face.cpp
+++ b/model/ndn-app-face.cpp
@@ -31,9 +31,6 @@
#include "ns3/ndn-header-helper.hpp"
#include "ns3/ndn-app.hpp"
-#include "ndn-interest.hpp"
-#include "ndn-data.hpp"
-
NS_LOG_COMPONENT_DEFINE("ndn.AppFace");
namespace ns3 {
@@ -80,7 +77,7 @@
}
bool
-AppFace::SendInterest(Ptr<const Interest> interest)
+AppFace::SendInterest(shared_ptr<const Interest> interest)
{
NS_LOG_FUNCTION(this << interest);
@@ -88,16 +85,13 @@
return false;
}
- if (interest->GetNack() > 0)
- m_app->OnNack(interest);
- else
- m_app->OnInterest(interest);
+ m_app->OnInterest(interest);
return true;
}
bool
-AppFace::SendData(Ptr<const Data> data)
+AppFace::SendData(shared_ptr<const Data> data)
{
NS_LOG_FUNCTION(this << data);