[ns] Wireless MAC Protocol with AppData

2011-03-29 Thread Simon Gammon
All I am currently having trouble sending AppData over a wireless connection. I think I've narrowed it down to the MAC protocol I'm using not being able to handle the AppData I am adding to the packet and then sending. All the AppData seems to be zeroed at the other end. Does anyone know of a M

[ns] RealTime Scheduler with Wireless Network

2011-03-26 Thread Simon Gammon
Hi All I'm trying to use the RealTime Scheduler to emulate a wireless network. The code I have works fine with a wired network, and my wireless setup works fine when run with the standard scheduler. However, this all falls apart when I try to run it as an emulation! It can send packets fine, but

[ns] Agent not Receiving Packets when Wireless

2011-03-24 Thread Simon Gammon
All I've written a Agent/Application that transmits packets containing a custom extension of AppData across the network. This works fine when transmitting across a wired network but not when I try to use a wireless scenario. I know that my agent is transmitting the packet, but it is not being re

[ns] Sending AppData across ns-2

2011-02-23 Thread Simon Gammon
All I'm trying to send and AppData object in a packet across ns-2 via an Agent and then pass the result back up to the Application. I know that I am sending the right data, however when the packet is caught in the 'recv' function, the AppData object is NULL. Does anyone know if there is anything