I am at the beginning of writing an simple mmo server for demo game. I am using UDP protocol (UdpClient) but I wonder, how other servers are working?:
- only 1 UDP client that process all connected clients and messages and responds to them
- server creates a new UDP client instance for each connected player?
I have tested connecting 50 clients who send "Ping" message and server has to reply with "Pong". It takes about 10 seconds (on localhost) for the 50th "Pong" to send (in the mean time, server is supposed to send ping to 1st player as well so queue can be prolonged to hours which is absurd)