github.com/coyove/common@v0.0.0-20240403014525-f70e643f9de8/logg/wsaerrno.go (about) 1 package logg 2 3 // Refer to https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx 4 5 var WSAErrno = map[int]string{ 6 10004: "Interrupted function call", 7 10009: "File handle is not valid", 8 10013: "Permission denied", 9 10014: "Bad address", 10 10022: "Invalid argument", 11 10024: "Too many open files", 12 10035: "Resource temporarily unavailable", 13 10036: "Operation now in progress", 14 10037: "Operation already in progress", 15 10038: "Socket operation on nonsocket", 16 10039: "Destination address required", 17 10040: "Message too long", 18 10041: "Protocol wrong type for socket", 19 10042: "Bad protocol option", 20 10043: "Protocol not supported", 21 10044: "Socket type not supported", 22 10045: "Operation not supported", 23 10046: "Protocol family not supported", 24 10047: "Address family not supported by protocol family", 25 10048: "Address already in use", 26 10049: "Cannot assign requested address", 27 10050: "Network is down", 28 10051: "Network is unreachable", 29 10052: "Network dropped connection on reset", 30 10053: "Software caused connection abort", 31 10054: "Connection reset by peer", 32 10055: "No buffer space available", 33 10056: "Socket is already connected", 34 10057: "Socket is not connected", 35 10058: "Cannot send after socket shutdown", 36 10059: "Too many references", 37 10060: "Connection timed out", 38 10061: "Connection refused", 39 10062: "Cannot translate name", 40 10063: "Name too long", 41 10064: "Host is down", 42 10065: "No route to host", 43 10066: "Directory not empty", 44 10067: "Too many processes", 45 10068: "User quota exceeded", 46 10069: "Disk quota exceeded", 47 10070: "Stale file handle reference", 48 10071: "Item is remote", 49 10091: "Network subsystem is unavailable", 50 10092: "Winsock.dll version out of range", 51 10093: "Successful WSAStartup not yet performed", 52 10101: "Graceful shutdown in progress", 53 10102: "No more results", 54 10103: "Call has been canceled", 55 10104: "Procedure call table is invalid", 56 10105: "Service provider is invalid", 57 10106: "Service provider failed to initialize", 58 10107: "System call failure", 59 10108: "Service not found", 60 10109: "Class type not found", 61 10110: "No more results", 62 10111: "Call was canceled", 63 10112: "Database query was refused", 64 11001: "Host not found", 65 11002: "Nonauthoritative host not found", 66 11003: "This is a nonrecoverable error", 67 11004: "Valid name, no data record of requested type", 68 11005: "QoS receivers", 69 11006: "QoS senders", 70 11007: "No QoS senders", 71 11008: "QoS no receivers", 72 11009: "QoS request confirmed", 73 11010: "QoS admission error", 74 11011: "QoS policy failure", 75 11012: "QoS bad style", 76 11013: "QoS bad object", 77 11014: "QoS traffic control error", 78 11015: "QoS generic error", 79 11016: "QoS service type error", 80 11017: "QoS flowspec error", 81 11018: "Invalid QoS provider buffer", 82 11019: "Invalid QoS filter style", 83 11020: "Invalid QoS filter type", 84 11021: "Incorrect QoS filter count", 85 11022: "Invalid QoS object length", 86 11023: "Incorrect QoS flow count", 87 11024: "Unrecognized QoS object", 88 11025: "Invalid QoS policy object", 89 11026: "Invalid QoS flow descriptor", 90 11027: "Invalid QoS provider-specific flowspec", 91 11028: "Invalid QoS provider-specific filterspec", 92 11029: "Invalid QoS shape discard mode object", 93 11030: "Invalid QoS shaping rate object", 94 11031: "Reserved policy QoS element type", 95 }