title: c++ how to use select to see if a socket has closed
body: <p>Can someone provide me an example of how to use select() to see if a client has closed the connection on a socket?</p>
  
  <p>FYI. I'm using linux.</p>
  
  <p>Thanks!</p>