title: asyncsocket "connectToHost" always succeeds and never returns a fail
body: <p>I am creating a socket connection with objective C, using asyncsocket.  I do this using the "connectToHost" method.  I am trying to handle the case where the socket connection fails.  "connectToHost" is supposed to return "YES" when it connects sucessfully, and a NO otherwise.  For some reason, it is always returning a yes.  I even supplied a blank string as the host and it still returns yes.  Any thoughts?</p>
  
  <p>Thanks,</p>
  
  <p>Robin</p>
  
  <pre><code>BOOL connectStatus = NO; //used to check if connection attempt succeeded
  testSocket = [[AsyncSocket alloc] initWithDelegate: self];
  connectStatus = [testSocket connectToHost: @"" onPort: 5000 error: nil];
  
  if(connectStatus == NO)
  {
      NSLog(@"Failed to connect to socket ");
  
  }
  
  else {
      NSLog(@"Connected to socket sucessfully, connectStatus = %d", connectStatus);
  }
  </code></pre>