How can I make recv not wait until data is sent

Apr 23, 2011 at 4:59pm
Is possible to force recv not to wait until data is sent, but instead check if there is any data to receive and if any data is available it will receive it?
Apr 25, 2011 at 2:12pm
Yes. Read up on poll() and select().
Apr 25, 2011 at 3:24pm
I would suggest also using "WaitForInputIdle(...)" with "poll()" and\or "select()" so that you don't spike your CPU with a needless loop. See Here: http://msdn.microsoft.com/en-us/library/ms687022(VS.85).aspx
Apr 28, 2011 at 10:27am
Topic archived. No new replies allowed.