Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: UDP Server - Handling multiple connections  (Read 4490 times)

0 Members and 1 Guest are viewing this topic.

EiTkoCaT

  • Newbie
  • *
  • Posts: 47
    • View Profile
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!

purkskis

  • Newbie
  • *
  • Posts: 22
    • View Profile
UDP Server - Handling multiple connections
« Reply #1 on: September 16, 2010, 09:14:28 pm »
i was asking something similar few topicks lower
you dont need selector if you are using only one socket

and here is my attempt to creat multiple client <-> server application with UDP, but it lags :/

EiTkoCaT

  • Newbie
  • *
  • Posts: 47
    • View Profile
UDP Server - Handling multiple connections
« Reply #2 on: September 16, 2010, 09:36:18 pm »
Quote from: "purkskis"
i was asking something similar few topicks lower
you dont need selector if you are using only one socket

and here is my attempt to creat multiple client <-> server application with UDP, but it lags :/


Thanks for the answer, but I still can't undertsnad how to do that!