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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Nabila khedimi > Sent: quinta-feira, 8 de Novembro de 2007 18:16 > To: ns-users@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 >