31 Mar
2010
31 Mar
'10
9:18 p.m.
When I use a tcp socket to connect to remote host, I may get an "actively refused"
WSAECONNREFUSED == 10061
or "time out" error in 1st time.
WSAETIMEDOUT == 10060
Then when I retry to connect to remote host, I "always" got "Software caused connection abort"
WSAECONNABORTED == 10053 http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspx I don't know why you say the former two are "normal" -- actually all the tree mean that there's a problem with your host sockets: either there's no listening socket or it closes an accepted socket, or there's some other issue in the host.