Winsock Error Codes

CodeNameDescription
10004WSAEINTRInterrupted function call
10009WSAEBADFBad file descriptor
10013WSAEACCESPermission denied
10014WSAEFAULTBad address
10022WSAEINVALInvalid argument
10024WSAEMFILEToo many open files
10035WSAEWOULDBLOCKResource temporarily unavailable
10036WSAEINPROGRESSOperation now in progress
10037WSAEALREADYOperation already in progress
10038WSAENOTSOCKSocket operation on non‑socket
10039WSAEDESTADDRREQDestination address required
10040WSAEMSGSIZEMessage too long
10041WSAEPROTOTYPEProtocol wrong type for socket
10042WSAENOPROTOOPTBad protocol option
10043WSAEPROTONOSUPPORTProtocol not supported
10044WSAESOCKTNOSUPPORTSocket type not supported
10045WSAEOPNOTSUPPOperation not supported
10046WSAEPFNOSUPPORTProtocol family not supported
10047WSAEAFNOSUPPORTAddress family not supported by protocol family
10048WSAEADDRINUSEAddress already in use
10049WSAEADDRNOTAVAILCannot assign requested address
10050WSAENETDOWNNetwork is down
10051WSAENETUNREACHNetwork is unreachable
10052WSAENETRESETNetwork dropped connection on reset
10053WSAECONNABORTEDSoftware caused connection abort
10054WSAECONNRESETConnection reset by peer
10055WSAENOBUFSNo buffer space available
10056WSAEISCONNSocket is already connected
10057WSAENOTCONNSocket is not connected
10058WSAESHUTDOWNCannot send after socket shutdown
10059WSAETOOMANYREFSToo many references: cannot splice
10060WSAETIMEDOUTConnection timed out
10061WSAECONNREFUSEDConnection refused
10062WSAELOOPCannot translate name
10063WSAENAMETOOLONGName too long
10064WSAEHOSTDOWNHost is down
10065WSAEHOSTUNREACHNo route to host
10066WSAENOTEMPTYDirectory not empty
10067WSAEPROCLIMToo many processes
10068WSAEUSERSUser quota exceeded
10069WSAEDQUOTDisk quota exceeded
10070WSAESTALEStale file handle reference
10071WSAEREMOTEItem is remote