Winsock Error Codes

Winsock (Windows Sockets) is the part of the Windows operating system responsible for network communication services.  

Winsock errors are generated by the operating system when the network communication service is unable to perform a given task.

Winsock errors are reported by the Controller.ErrorCode property

..ErrorCode

Descroption

10013

Permission denied - An attempt was made to access a socket in a way forbidden by its access permissions

10035

Resource temporarily unavailable - This error is returned from operations on non-blocking sockets that cannot be completed immediately. It is a non-fatal error, and the operation should be retried later

10037

Operation already in progress - An operation was attempted on a non-blocking socket that already had an operation in progress

10039

Destination address required - A required address was omitted from an operation on a socket

10047

Address family not supported by protocol family - An address incompatible with the requested protocol was used

10048

Address already in use - Only one usage of each socket address (protocol/IP address/port) is normally permitted. This error occurs if an application attempts to bind a socket to an IP address/port that has already been used for an existing socket, or a socket that wasn't closed properly, or one that is still in the process of closing.

10049

Cannot assign requested address - The requested address is not valid in its context

10050

Network is down - A socket operation encountered a dead network

10051

Network is unreachable - A socket operation was attempted to an unreachable network

10052

Network dropped connection on reset - The host you were connected to crashed and rebooted

10053

Software caused connection abort - An established connection was aborted by the software in your host machine, possibly due to a data transmission timeout or protocol error

10054

Connection reset by peer - An existing connection was forcibly closed by the remote host

10056

Socket is already connected - A connect request was made on an already connected socket

10057

Socket is not connected - A request to send or receive data was disallowed because the socket is not connected

10058

Cannot send after socket shutdown - A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call

10060

Connection timed out - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

10061

Connection refused - No connection could be made because the target machine actively refused it.

10064

Host is down - A socket operation failed because the destination host was down

10065

No route to host- A socket operation was attempted to an unreachable host