Bug 885 - Error in Ascii tracing in Python examples

This commit is contained in:
Kim Højgaard-Hansen committed 2010-04-20 14:12:35 -04:00
1 parent 5b66ac0772
commit 3de4fcd57e
3 files changed
+6 -17

No files matched your search

+2 -3
View File
@@ -123,9 +123,8 @@ def main(argv):
# Trace output will be sent to the file "csma-bridge.tr"
#
#print "Configure Tracing."
#std.ofstream ascii
#ascii.open("csma-bridge.tr")
#CsmaHelper.EnableAsciiAll(ascii)
#ascii = ns3.AsciiTraceHelper();
#csma.EnableAsciiAll(ascii.CreateFileStream ("csma-bridge.tr"));
#
# Also configure some tcpdump traces; each interface will be traced.
-11
View File
@@ -428,17 +428,6 @@ main (int argc, char *argv[])
TIMER_NOW (routingEnd);
cout << "Routing tables population took "
<< TIMER_DIFF (routingEnd, routingStart) << endl;
#if 0
std::ofstream ascii;
ascii.open("nms_p2p_nix.tr");
PointToPointHelper::EnableAsciiAll(ascii);
CsmaHelper::EnableAsciiAll(ascii);
#endif
#if 0
PointToPointHelper::EnablePcapAll("nms_p2p");
CsmaHelper::EnablePcapAll("nms_csma");
#endif
Simulator::ScheduleNow (Progress);
cout << "Running simulator..." << endl;
+4 -3
View File
@@ -316,9 +316,10 @@ def main(argv):
# Let's set up some ns-2-like ascii traces, using another helper class
#
#std.ofstream ascii
#ascii.open("mixed-wireless.tr")
#WifiHelper.EnableAsciiAll(ascii)
#CsmaHelper.EnableAsciiAll(ascii)
#ascii = ns3.AsciiTraceHelper();
#stream = ascii.CreateFileStream("mixed-wireless.tr");
#wifiPhy.EnableAsciiAll(stream);
#csma.EnableAsciiAll(stream);
print "(tracing not done for Python)"
# Look at nodes 11, 13 only
# WifiHelper.EnableAscii(ascii, 11, 0);