title: How to know Socket client got disconnected?
body: <p>I am doing coding in linux architecture.
  I have question regarding socket server and client.
  I have made one sample code in which server continue to accept the connection and client is connected to server.
  if somehow someone has remove the network cable so i am disconnecting client (client socket disconnected from PC) while in server side connection is still alive because i am not able to notify that client is disconnected because network is unplugged.</p>
  
  <p>How can i know that client got disconnected ?</p>
  
  <p>Thanks,
  Neel</p>