aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/dos-8x3/socketse.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-22 13:50:33 +0000
committerGuido van Rossum <guido@python.org>1998-12-22 13:50:33 +0000
commit7ea1d972d1519ac8cb8051ff0e99d02e9ef71251 (patch)
tree55317bb06946ba95640e4cbe97588f9cf743f045 /Lib/dos-8x3/socketse.py
parentfdd302820ec8f8af0baa3e58a2795d00f14dffcb (diff)
downloadcpython-7ea1d972d1519ac8cb8051ff0e99d02e9ef71251.tar.gz
cpython-7ea1d972d1519ac8cb8051ff0e99d02e9ef71251.zip
The usual.
# Message to all python-checkins readers: we have a problem with the # CVS mirroring software. You can't check out the latest changes yet. # We hope to have fixed this by noon EST today.
Diffstat (limited to 'Lib/dos-8x3/socketse.py')
-rwxr-xr-xLib/dos-8x3/socketse.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/Lib/dos-8x3/socketse.py b/Lib/dos-8x3/socketse.py
index 0d0caac7723..23f3a8e8be3 100755
--- a/Lib/dos-8x3/socketse.py
+++ b/Lib/dos-8x3/socketse.py
@@ -273,18 +273,6 @@ class UDPServer(TCPServer):
pass
-if hasattr(socket, 'AF_UNIX'):
-
- class UnixStreamServer(TCPServer):
-
- address_family = socket.AF_UNIX
-
-
- class UnixDatagramServer(UDPServer):
-
- address_family = socket.AF_UNIX
-
-
class ForkingMixIn:
"""Mix-in class to handle each request in a new process."""
@@ -339,6 +327,17 @@ class ForkingTCPServer(ForkingMixIn, TCPServer): pass
class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass
class ThreadingTCPServer(ThreadingMixIn, TCPServer): pass
+if hasattr(socket, 'AF_UNIX'):
+
+ class UnixStreamServer(TCPServer):
+ address_family = socket.AF_UNIX
+
+ class UnixDatagramServer(UDPServer):
+ address_family = socket.AF_UNIX
+
+ class ThreadingUnixStreamServer(ThreadingMixIn, UnixStreamServer): pass
+
+ class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer): pass
class BaseRequestHandler:
@@ -351,7 +350,7 @@ class BaseRequestHandler:
defines a handle() method.
The handle() method can find the request as self.request, the
- client address as self.client_request, and the server (in case it
+ client address as self.client_address, and the server (in case it
needs access to per-server information) as self.server. Since a
separate instance is created for each request, the handle() method
can define arbitrary other instance variariables.