summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/socketse.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-15 00:45:26 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-15 00:45:26 (GMT)
commitff712aa8abde6a1a892ec39bb124cfd4a7cb992a (patch)
treec5cf2853501f0678abb92fb8e91315b3ee0d8a76 /Lib/dos-8x3/socketse.py
parentf84a539d38ffe79a4eb940c4a2071294fa734fe8 (diff)
downloadcpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.zip
cpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.tar.gz
cpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.tar.bz2
The usual.
Diffstat (limited to 'Lib/dos-8x3/socketse.py')
-rwxr-xr-xLib/dos-8x3/socketse.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/dos-8x3/socketse.py b/Lib/dos-8x3/socketse.py
index 6c371e2..ecd405f 100755
--- a/Lib/dos-8x3/socketse.py
+++ b/Lib/dos-8x3/socketse.py
@@ -34,10 +34,10 @@ synchronous servers of four types:
| UDPServer |------->| UnixDatagramServer |
+-----------+ +--------------------+
-(Note that UnixDatagramServer derives from UDPServer, not from
+Note that UnixDatagramServer derives from UDPServer, not from
UnixStreamServer -- the only difference between an IP and a Unix
stream server is the address family, which is simply repeated in both
-unix server classes.)
+unix server classes.
Forking and threading versions of each type of server can be created
using the ForkingServer and ThreadingServer mix-in classes. For
@@ -45,8 +45,8 @@ instance, a threading UDP server class is created as follows:
class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass
-(The Mix-in class must come first, since it overrides a method defined
-in UDPServer!)
+The Mix-in class must come first, since it overrides a method defined
+in UDPServer!
To implement a service, you must derive a class from
BaseRequestHandler and redefine its handle() method. You can then run
@@ -266,7 +266,7 @@ class UDPServer(TCPServer):
max_packet_size = 8192
def get_request(self):
- return self.socket.recvfrom(max_packet_size)
+ return self.socket.recvfrom(self.max_packet_size)
if hasattr(socket, 'AF_UNIX'):