I am trying to build a wireless lan with 3 qnx6.3.2 machines. now i wanna use udp sockets to realize peer-to-peer wlan. So i need to embed both client and server implementation in two threads in each machine. I have also other threads in each machine. Is it suitable in this case? Besides, I will arrange them to run in a pre-defined order.
Specifically, after all the initialization, like socket creating and binding, when it is server’s thread turn to run, it just accepts and does some processing. then comes the client’s turn to send pkts. All the threads run once every 20ms. So in each 20ms cycle, one machine may receive more than 1 pkts from others. How should i buffer the udp packet then?
Another issue is the medium access. Considering the real time requirements, i tried to deploy wireless token ring protocol in each one, so that at any instance only one machines has the chance to talk.
Look forward to ur comments and suggestions. thx