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

Author Topic: Question about SFML 2.0 Selector.wait()  (Read 2035 times)

0 Members and 1 Guest are viewing this topic.

Morgaza

  • Newbie
  • *
  • Posts: 3
    • View Profile
Question about SFML 2.0 Selector.wait()
« on: December 12, 2012, 10:30:36 pm »
Hello,

I have a question about the function wait() for the SocketSelector.

Is it possible to use this function without a Timeout, and if so, how?

So far I have only managed to use this function using sf::microseconds(1), but I wonder if it is possible to have no Timeout.

Thanks in advance.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Question about SFML 2.0 Selector.wait()
« Reply #1 on: December 12, 2012, 10:40:53 pm »
There's no point to use a selector without a timeout, just set all your sockets to non-blocking.
Laurent Gomila - SFML developer

Morgaza

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Question about SFML 2.0 Selector.wait()
« Reply #2 on: December 12, 2012, 11:21:13 pm »
That cleared it all up for me, thanks.

 

anything