summaryrefslogtreecommitdiffstats
path: root/Lib/plat-win
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-06 13:48:04 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-06 13:48:04 (GMT)
commitd618c91f149d916006b4fb96f5685dd3dddccfab (patch)
treeab9950be4674edccb0d4382a14e5e574c2a5430c /Lib/plat-win
parent1ed70366e392958303c09931c964f34925ea9fc5 (diff)
downloadcpython-d618c91f149d916006b4fb96f5685dd3dddccfab.zip
cpython-d618c91f149d916006b4fb96f5685dd3dddccfab.tar.gz
cpython-d618c91f149d916006b4fb96f5685dd3dddccfab.tar.bz2
Added table of WSA error codes.
Diffstat (limited to 'Lib/plat-win')
-rwxr-xr-xLib/plat-win/socket.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/Lib/plat-win/socket.py b/Lib/plat-win/socket.py
index 3cb9fb9..d5024f9 100755
--- a/Lib/plat-win/socket.py
+++ b/Lib/plat-win/socket.py
@@ -131,3 +131,22 @@ class _fileobject:
if not line: break
list.append(line)
return list
+
+
+# WSA error codes
+errorTab = {}
+errorTab[10004] = "The operation was interrupted."
+errorTab[10009] = "A bad file handle was passed."
+errorTab[10013] = "Permission denied."
+errorTab[10014] = "A fault occurred on the network??" # WSAEFAULT
+errorTab[10022] = "An invalid operation was attempted."
+errorTab[10035] = "The socket operation would block"
+errorTab[10036] = "A blocking operation is already in progress."
+errorTab[10048] = "The network address is in use."
+errorTab[10054] = "The connection has been reset."
+errorTab[10058] = "The network has been shut down."
+errorTab[10060] = "The operation timed out."
+errorTab[10061] = "Connection refused."
+errorTab[10063] = "The name is too long."
+errorTab[10064] = "The host is down."
+errorTab[10065] = "The host is unreachable."