[ns] a loop or a start and stop methods
Pedro Vale Estrela
pedro.estrela at gmail.com
Thu Nov 8 10:47:36 PST 2007
You need to schedule a tcl proc which:
a) does ping "send"
b) reschedule itself for 1 second later
this is a simple 4 line TCL proc!
you can also do this in c++ only by using a timer object, for the same
purpose. This will require recompilation and c++ debugging.
> -----Original Message-----
> From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf
> Of Nabila khedimi
> Sent: quinta-feira, 8 de Novembro de 2007 18:16
> To: ns-users at ISI.EDU
> Subject: [ns] a loop or a start and stop methods
> I want to execute a ping agent continuously during the simulation,
> regarding the schedular object in NS, is there any the difference between
> making a infinite loop inside the tcl code or define a start and a stop
> method inside the ping agent code(which is a c++ program)
> Thanks for help
More information about the Ns-users