05-08-2012, 02:24 AM
If you don't feel like using both TCP and UDP, you can make UDP more reliable by putting message numbers in important messages and have the client confirm to the server that they've received the messages in the right order. If the client loses one or receives one out of order, the server resends that message. It may be a bit tricky to get right, but it works. I still think it would be better and easier if you just used both TCP and UDP.