Hello, is there a way to avoid hanging at a call to recv()? If nothing happens after a certain time interval, I want to proceed to the next part of my program.
This is a discussion on WINSOCK2 - Timing Out within the Networking/Device Communication forums, part of the General Programming Boards category; Hello, is there a way to avoid hanging at a call to recv()? If nothing happens after a certain time ...
Hello, is there a way to avoid hanging at a call to recv()? If nothing happens after a certain time interval, I want to proceed to the next part of my program.
You can use select() with your timeout value to determin if there is any data to be received or use none blocking sockets.