Hi list, i have a problem and i hope u can help me on it : i m simulating ad hoc on ns2.27 version and i m modifiying in transmit() function in the mac-802_11.cc file
before sending pkt i must do an admission control as described bellow : for each pkt i verify if the idle time in the channel is > admission threashold So send pkt Else if the idle time in the channel is < admission threashold So i must wait a random time after that i re calculate the new idle time if the new idle time So send pkt Else drop pkt my problem is how to wait this random time : when i use a timer i have "the schedular ERROR" i hope that u understand my problem. thanks for ur time (if u want any other explanation i m here.) tanks for any help....