Detecting I/O errors in a NON BLOCKING SOCKET

Posted by ripunjay-tripathi-gmail-com on Stack Overflow See other posts from Stack Overflow or by ripunjay-tripathi-gmail-com
Published on 2010-05-01T07:00:01Z Indexed on 2010/05/01 7:07 UTC
Read the original article Hit count: 233

Filed under:
|
|

I am writing a client - server system in which I used NON-BLOCKING sockets. My problem is to detect error { while performing send() or write() } that may occur while data transfer. Example lets say, while the data is being transferred the peer crashes. Another case there is some network problem, something like wire unplugged etc.

As of now, I am using a high level ACK, that peer sends after receiving the complete data.

Ripunjay Tripathi

© Stack Overflow or respective owner

Related posts about sockets

Related posts about error