Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(516)

Unified Diff: examples/routing/simple-point-to-point-olsr.cc

Issue 196058: Redo ASCII and pcap Traces
Patch Set: Created 14 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: examples/routing/simple-point-to-point-olsr.cc
===================================================================
--- a/examples/routing/simple-point-to-point-olsr.cc
+++ b/examples/routing/simple-point-to-point-olsr.cc
@@ -157,10 +157,9 @@
apps.Start (Seconds (1.1));
apps.Stop (Seconds (10.0));
- std::ofstream ascii;
- ascii.open ("simple-point-to-point-olsr.tr");
- PointToPointHelper::EnablePcapAll ("simple-point-to-point-olsr");
- PointToPointHelper::EnableAsciiAll (ascii);
+ AsciiTraceHelper ascii;
+ p2p.EnableAsciiAll (ascii.CreateFileStream ("simple-point-to-point-olsr.tr"));
+ p2p.EnablePcapAll ("simple-point-to-point-olsr");
Simulator::Stop (Seconds (30));

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b