Lines Matching refs:socketserver
1 :mod:`socketserver` --- A framework for network servers
4 .. module:: socketserver
7 **Source code:** :source:`Lib/socketserver.py`
11 The :mod:`socketserver` module simplifies the task of writing network servers.
118 :meth:`socketserver.ForkingMixIn.server_close` waits until all child
120 :attr:`socketserver.ForkingMixIn.block_on_close` attribute is false.
122 :meth:`socketserver.ThreadingMixIn.server_close` waits until all non-daemon
124 :attr:`socketserver.ThreadingMixIn.block_on_close` attribute is false. Use
131 :meth:`socketserver.ForkingMixIn.server_close` and
132 :meth:`socketserver.ThreadingMixIn.server_close` now waits until all
134 Add a new :attr:`socketserver.ForkingMixIn.block_on_close` class
310 it be assumed that the user will look at socketserver.py?
445 :class:`socketserver.TCPServer` Example
450 import socketserver
452 class MyTCPHandler(socketserver.BaseRequestHandler):
473 with socketserver.TCPServer((HOST, PORT), MyTCPHandler) as server:
481 class MyTCPHandler(socketserver.StreamRequestHandler):
544 :class:`socketserver.UDPServer` Example
549 import socketserver
551 class MyUDPHandler(socketserver.BaseRequestHandler):
568 with socketserver.UDPServer((HOST, PORT), MyUDPHandler) as server:
603 import socketserver
605 class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
613 class ThreadedTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):