title: Socket Beginconnect several times for the same socket while not connected
body: <p>I'm trying to connect a client to a server with an asynchronous socket in c#.</p>
  
  <p>I'm doing socket.beginconnect to try to connect, the point is that if the connection is not established, I would like it to try to beginconnect, and if the connection is not established in 500ms, I would like to try it again for lets say, 10 times.</p>
  
  <p>I tried a simple bucle but it doesn't work because I cant beginconnect again until the previous one is finished, but when the beginconnect finishes and don't find the server, it returns an expecion that there is no server.</p>