hi,
I am new to ns2

,and I was wondering if it possible to send and receive data asynchronously. I modified the ping program to send data , but what's happening is , when I try to send data, only after all the send requests, I am getting all the replies. To be more clear
I modified the ping program in ns2 ,the pattern in which I am able to send goes like this...
======================
sending data...
sending data...
sending data...
receiving data...
receiving data...
receiving data...
======================
my question is why not ..
sending data...
receiving data...
sending data...
receiving data...
======================
I have coded the send data as a thread , I am uploading the files along with this thread.
Any help would be great.
sendreceive.zip