I
downloaded the ns-2.1b5.exe win32 binary, just to ensure that I hadn't flubbed
anything in my build process. Then I took the "example-trace" file that is
included in the source distribution, that is used in the tg.tcl example, and put
it into the same directory. Then I run the following script, and I still get the
same message "warning: no class variable Tracefile::debug_", and the trace
output is empty.
ANY
help would be greatly appreciated.
set ns
[new Simulator]
set n0 [$ns node]; set n1 [$ns node] set endtime 1.0 $ns duplex-link $n0 $n1 100.0M 2ms DropTail set null0 [new Agent/Null] $ns attach-agent $n1 $null0 set s [new Agent/UDP] $ns attach-agent $n0 $s set tfile [new Tracefile] $tfile filename dumpster set tr [new Application/Traffic/Trace] $tr attach-tracefile $tfile $tr attach-agent $s $ns connect $s $null0 $ns at 0.0 "$tr start" set
flow [open tuttrace.out w]
$ns trace-queue $n0 $n1 $flow $ns at [expr $endtime + .01] "finish" proc finish {} { global ns flow close $flow; $ns flush-trace exit 0 } $ns run
|