Setting the timeout on a TcpClient.Connect or Socket.Connect
經安全檢測,此網站為安全網站,請放心前往原始網址!
Setting the timeout on a TcpClient.Connect or Socket.Connect
When the remote system is off the connect timeout is a bit long. I have tried using
... I'm using vb.net, not c#, but here's a sample way similar to how I handled it: