Re: [ns] How to specify "wait" in ns2

2006-05-31 Thread Ahmad Khayyat
You may want to consider using a timer.. Heo Heo wrote: > I am working on improving AODV, and I need to specify "wait" in ns2, > something like: > > - When the routing packets (RREQ) arrive, just store it into a buffer > and do not send out anything. > > - Wait for a period of X m

Re: [ns] How to specify "wait" in ns2

2006-05-21 Thread Zhou Ya Jin
I think you can use the timer class of NS2 in c++. You can find how to use timer in most souce code, such as tcp.cc, tfrc.cc. - Original Message - From: "Heo Heo" <[EMAIL PROTECTED]> To: Sent: Monday, May 22, 2006 12:47 PM Subject: [ns] How to specify "wait

[ns] How to specify "wait" in ns2

2006-05-21 Thread Heo Heo
I am working on improving AODV, and I need to specify "wait" in ns2, something like: - When the routing packets (RREQ) arrive, just store it into a buffer and do not send out anything. - Wait for a period of X miliseconds. After that, look into the buffer and select the routing pa