UDP Code client server architecture
- by GameBuilder
Hi I have developed a game on android.Now I want to play it on wifi or 3G. I have game packets which i want to send it form client(mobile) to server then to another client2(mobile).
I don't know how to write code in Java to send the playPackets continuously to server and receive the playPacket continuously from the server to the clients.
I guess i have to use two thread one for sending and one for receiving.
Can someone help me with the code, or the procedure to write code for it.
Thanks in advance.