How can I make recv not wait until data is sent

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?
Yes. Read up on poll() and select().
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
Topic archived. No new replies allowed.