socketserver.ForkingMixIn

class socketserver.ForkingMixIn class socketserver.ThreadingMixIn

Forking and threading versions of each type of server can be created using these mix-in classes. For instance, ThreadingUDPServer is created as follows:

class ThreadingUDPServer(ThreadingMixIn, UDPServer):
    pass

The mix-in class comes first, since it overrides a method defined in UDPServer. Setting the various attributes also changes the behavior of the underlying server mechanism.

doc_python
2016-10-07 17:42:31
Comments
Leave a Comment

Please login to continue.