Hi I'm working on it for some days but can't actually get the flow of execution in the code, like which funtions(c++) are called likewise.
Suppose in simple-wireless.tcl, like from where does the code actually starts, like i know is the "ns-lib.tcl" calls some tcl files which initializes the simulator, like packet-header and all. But after that from where does the c++ functions called. Example : I used ( from simple-wireless.tcl): ************************************************************************************* set val(mac) Mac/802_11 $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ . . set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns_ attach-agent $node_(0) $tcp $ns_ attach-agent $node_(1) $sink $ns_ connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns_ at 10.0 "$ftp start" # # Tell nodes when the simulation ends # for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at 150.0 "$node_($i) reset"; } $ns_ at 150.0 "stop" $ns_ at 150.01 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd } puts "Starting Simulation..." $ns_ run ************************************************************************************* Now from where does the fuctions of say mac802_11.cc called, like recv(), transmit() and all. -- Saurabh Sinha Department of Computer Science, University of Delhi.