[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.
Pedro Estrela
http://tagus.inesc-id.pt/~pestrela
> -----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
>
>
>
> Hi,
> 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
> Nabila
>
More information about the Ns-users
mailing list