*** WSAECONNREFUSED – 10061 ***

*** WSAECONNREFUSED – 10061 *** Description Connection refused. Notes No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running.

*** WSAENOTCONN – 10057 ***

*** WSAENOTCONN – 10057 *** Description Socket is not connected. Notes A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using sendto) no address was supplied. Any other type of operation might also return this error—for example, setsockopt setting SO_KEEPALIVE if the… Continue reading *** WSAENOTCONN – 10057 ***

*** WSAEISCONN – 10056 ***

*** WSAEISCONN – 10056 *** Description Socket is already connected. Notes A connect request was made on an already-connected socket. Some implementations also return this error if sendto is called on a connected SOCK_DGRAM socket (for SOCK_STREAM sockets, the to parameter in sendto is ignored) although other implementations treat this as a legal occurrence.

*** WSAECONNRESET – 10054 ***

*** WSAECONNRESET – 10054 *** Description Connection reset by peer. Notes An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close… Continue reading *** WSAECONNRESET – 10054 ***

*** WSAENETRESET – 10052 ***

*** WSAENETRESET – 10052 *** Description Network dropped connection on reset. Notes The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress. It can also be returned by setsockopt if an attempt is made to set SO_KEEPALIVE on a connection that has already failed.