Small source movements (ccn_* to ccn/). Small change of NameBuilder implementation
diff --git a/model/ndn_stupidinterestgenerator.cc b/model/ndn_stupidinterestgenerator.cc
index 629d48f..5bc1861 100644
--- a/model/ndn_stupidinterestgenerator.cc
+++ b/model/ndn_stupidinterestgenerator.cc
@@ -13,6 +13,8 @@
#include "ndn_interestpacket.h"
#include "ndn_namebuilder.h"
+#include "ccn/ccn_charbuf.h"
+
NS_LOG_COMPONENT_DEFINE ("StupidInterestGenerator");
namespace ns3
@@ -159,11 +161,9 @@
NS_LOG_LOGIC ("sending packet at " << Simulator::Now ());
NS_ASSERT (m_sendEvent.IsExpired ());
- NameBuilder name;
- name.AddComponent("prefix1");
- name.AddComponent("prefix2");
- name.AddComponent("filename");
- ccn_charbuf *output = name.GetName();
+ NameBuilder name;
+ name("prefix1")("prefix2")("filename");
+ const ccn_charbuf *output = name.GetName();
Ptr<InterestPacket> packet = Create<InterestPacket>(output->buf,(uint32_t)output->length);
packet->AddTimeout(4000);
UniformVariable var;
@@ -174,4 +174,4 @@
}
//}
-}
\ No newline at end of file
+}