title: Poll a connected client from a server in C#
body: <p>I am trying to poll a connection from a client connected to my server. </p>
  
  <p>When you use poll you need to give it a socket connection but on the server's side the socket is bound to it's own IP address and a specific port. Making another socket to connect on the same port but with the client's IP address won't work since you can't have multiple connections on the same socket. </p>
  
  <p>I am just wondering what would be a good way to constantly be checking if a client is still connected to the server and also when it disconnects? </p>
  
  <p>I was thinking some sort of timeout check or something. I just wanted to know if there was any generic or proper way of achieving this. </p>
  
  <p>I have tried <code>Socket.Poll</code> but it does not seem to achieve what I want. </p>
  
  <p>To restate my question, how do you check if a client is connected on the server side using TCP sockets in C#?</p>