CcnxInterestSender and its helper fixes
diff --git a/apps/ccnx-interest-sender.cc b/apps/ccnx-interest-sender.cc
index 6ca40a3..239d7cb 100644
--- a/apps/ccnx-interest-sender.cc
+++ b/apps/ccnx-interest-sender.cc
@@ -37,6 +37,10 @@
TimeValue (Seconds (0.1)),
MakeTimeAccessor (&CcnxInterestSender::m_offTime),
MakeTimeChecker ())
+ .AddAttribute ("Face","Local face to be used",
+ PointerValue (CreateObject<CcnxLocalFace> ()),
+ MakePointerAccessor (&CcnxInterestSender::m_face),
+ MakePointerChecker<CcnxLocalFace> ())
/*.AddAttribute ("NameComponents","CcnxName of the Interest (use CcnxNameComponents)",
CcnxNameComponentsValue(CcnxNameComponents()),
MakeCcnxNameComponentsAccessor(&CcnxInterestSender::m_interestName),
@@ -130,7 +134,7 @@
{
NS_LOG_FUNCTION_NOARGS ();
- Time nextTime = Seconds(m_offTime); //send now
+ Time nextTime = Seconds(m_offTime);
m_sendEvent = Simulator::Schedule (nextTime, &CcnxInterestSender::SendPacket, this);
}
diff --git a/apps/ccnx-interest-sender.h b/apps/ccnx-interest-sender.h
index 345da02..04e9801 100644
--- a/apps/ccnx-interest-sender.h
+++ b/apps/ccnx-interest-sender.h
@@ -78,6 +78,7 @@
void Construct (Ptr<Node> n,
std::string tid,
const Time& offtime,
+ Ptr<CcnxLocalFace> face,
Ptr<CcnxNameComponents> nameComponents,
const Time& lifetime,
const int32_t& minSuffixComponents,