title: Issue to find out the TcpClient disconnected due to network lost
body: <p>I am working on a TcpClient Asynchronous requesting WPF project. In which I have written some code when ever client gets disconnected with out network lost due to socket disconnected. Its working fine, and when the socket is removed/unplugged also on the server side no event is firing or no exception recieved to make the client status disconnected. I have seen about this issue in many sites, every where people used to say to use the <code>Socket.Poll</code> method but which is not working in my case. The <code>SelectMode.SelectRead</code> is always returning true when the client connected or disconnected, so I cant find any alternative. </p>
  
  <p>So, I am posting my question here to know how to find when a client socket is unplugged/network access has been lost in asynchronous mode. I have tried with following code, any how its not working.</p>
  
  <pre><code>    void CheckSocketStatus()
      {
          try
          {
              while (true)
              {
                  System.Threading.Thread.Sleep(1000);
                  if(!mobjClient.Client.Poll(0,SelectMode.SelectWrite))
                  {
                      break;
                  }
              }
          }
          catch(SocketException soex)
          {
  
          }
      }
  </code></pre>
  
  <p>Hope someone can help me.</p>