SFML community forums

Help => Network => Topic started by: Morgaza on December 12, 2012, 10:30:36 pm

Title: Question about SFML 2.0 Selector.wait()
Post by: Morgaza 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.
Title: Re: Question about SFML 2.0 Selector.wait()
Post by: Laurent 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.
Title: Re: Question about SFML 2.0 Selector.wait()
Post by: Morgaza on December 12, 2012, 11:21:13 pm
That cleared it all up for me, thanks.