Sorry, if this thread doesnt fit here. I will still ask.
I want to wait for a certain timeout value (60 secs) after sending a request packet over a TCP socket, before deciding if the peer is dead or alive. If the reply packet comes within 60 secs from starting timer, I need to stop the timer and proceed further.
How can I implement this functionality with TCP recv() function? Any pointers ?