Dear all,

I'm a newbee on NS2 simulation. However, I have a problem considering  
the following scenario.

I want to broadcast one control packet, for each time interval, by a  
node chosen randomly. Then, after a certain period, I could send  a  
data packet by a designated node.

My problem is that I used the following  start command function. I  
found that messages are  only sent, but not received by the agent.

  This is start method in C++ called from .tcl script
void DiAlertApp::start()
{
           if (ValidAlert!=2)
        send_broadcast((long int)-1,'e',2); // broadcast control packets
          else send_broadcast((long int)-1,'e',1);//  broadcast one  
data packet is sent/
}

Thanks,



Reply via email to