On 09.05.2017 12:06, Stefan Dösinger wrote:
The existing code already has the sleeps. I am not sure if they are necessary, but if removing them introduces random failures we may or may not catch it immediately.
In this case you may use select() to make sure that data is available before calling WSARecv.
Jacek