⚲
Project
General
Profile
Sign in
Register
Home
Projects
Search
:
ndnSIM
All Projects
ndnSIM
Overview
Activity
Roadmap
Issues
News
Wiki
Download (940 Bytes)
Task #2538
» patch_ndn_consumer.txt
patch for ndn-consumer -
Christian Kreuzberger
, 08/06/2015 02:29 AM
diff --git a/apps/ndn-consumer.cpp b/apps/ndn-consumer.cpp
index a1ad032..46762bd 100644
--- a/apps/ndn-consumer.cpp
+++ b/apps/ndn-consumer.cpp
@@ -81,8 +81,6 @@ Consumer::Consumer()
, m_seqMax(0) // don't request anything
{
NS_LOG_FUNCTION_NOARGS();
-
- m_rtt = CreateObject<RttMeanDeviation>();
}
void
@@ -137,6 +135,8 @@ Consumer::StartApplication() // Called at time specified by Start
// do base stuff
App::StartApplication();
+ m_rtt = CreateObject<RttMeanDeviation>();
+
ScheduleNextPacket();
}
@@ -148,6 +148,16 @@ Consumer::StopApplication() // Called at time specified by Stop
// cancel periodic packet generation
Simulator::Cancel(m_sendEvent);
+ m_retxSeqs.clear();
+ m_seqTimeouts.clear();
+ m_seqLastDelay.clear();
+ m_seqFullDelay.clear();
+ m_seqRetxCounts.clear();
+
+
+ m_rtt = NULL;
+
+
// cleanup base stuff
App::StopApplication();
}
« Previous
1
2
Next »
(2-2/2)
Loading...