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

Author Topic: Looping through clients with TCP selector  (Read 2225 times)

0 Members and 1 Guest are viewing this topic.

Linuxxon

  • Newbie
  • *
  • Posts: 10
    • MSN Messenger - rasmus.linusson@gmail.com
    • View Profile
    • http://www.linuxxon.com
Looping through clients with TCP selector
« on: March 26, 2012, 10:12:12 am »
Can't find anything on how to loop through a tcp selector without them having to send packets to make the socket ready.

I want to be able to send packets to them...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Looping through clients with TCP selector
« Reply #1 on: March 26, 2012, 10:31:37 am »
A selector is not a container of sockets, if you want to have a list of all your active sockets you must have your own container.
Laurent Gomila - SFML developer

Linuxxon

  • Newbie
  • *
  • Posts: 10
    • MSN Messenger - rasmus.linusson@gmail.com
    • View Profile
    • http://www.linuxxon.com
Re: Looping through clients with TCP selector
« Reply #2 on: March 26, 2012, 01:52:00 pm »
Okay, then it makes sense that I didn't find anything (: