I am developing a multi-player on-line game.
I just started coding the server but I have no idea how to do it. Do I have to use threads ?
And if i do, do I need one thread for every client?
Knowing that I am using UDP, can I use multiple sockets in different threads to send packets on the same port?
edit:
server does:
-listen for client connections
-when a client connects:
-update files (send new files to the client)
-retrieve data from database
-loop to retrieve and update live data
-when client disconnects:
-update data in database