title: How can I detect TCP dead-connection in linux on C?
body: <p>I wrote a program on C , where a client sent one time some information to a server. I used TCP sockets.And some time the server calculated and should to sent result to the client. How can I detect if connection on The server or the client was broken?</p>