46
Network / UDP Server - Handling multiple connections
« on: September 16, 2010, 07:34:14 pm »
Hey,
I tried to use that http://www.sfml-dev.org/tutorials/1.6/network-selector.php but I can't understand how to use it in UDP. I secceed to create sockets (learned via the example that comes with SFML), but I want multiple clients, and also, I couldn;t understant why the program always closed after the first socket it gets. Anyway, if anyone can tell me how can I handle multiple clients with multiple messgaes from every client in UDP,
thanks!
I tried to use that http://www.sfml-dev.org/tutorials/1.6/network-selector.php but I can't understand how to use it in UDP. I secceed to create sockets (learned via the example that comes with SFML), but I want multiple clients, and also, I couldn;t understant why the program always closed after the first socket it gets. Anyway, if anyone can tell me how can I handle multiple clients with multiple messgaes from every client in UDP,
thanks!