title: TcpClient ConnectAsync get status
body: <p>Is there any way I can get the status of a TcpClient async connection? Using the following code, how can I get the status of the client using the Connected property? I try to establish a remote connection asynchronously but in the same time don't wait more then 5 seconds ...</p>
  
  <pre><code>TcpClient client = new TcpClient();
  
  Task tsk = Task.Factory.StartNew(() =&gt;
  {
     client.ConnectAsync(host, port);
  
     // client.Connect   (this is always false)
  });
  
  tsk.Wait(5000);
  
  // client.Connect   (or if I use it here, this is always false)
  </code></pre>