Why IAsyncResult report all port as opened?
问题 i have this method running in a thread , but when i test it report all ports as open. it seems that the method : var result = client.BeginConnect(host, port, null, null); don't working well when passing the results in var success = result.AsyncWaitHandle.WaitOne(tcpTimeout); ... Any idea how to solve that ? I have tried client.ConnectAsync(host,port).Wait(TcpTimeout); but this is not working as expected too .... public void start() { Thread thread1 = new Thread(new ThreadStart(RunScanTcp));