socketserver
socketserver — A framework for network servers
Source code: Lib/socketserver.py
The socketserver
module simplifies the task of writing network servers.
There are four basic concrete server classes:
-
class socketserver.TCPServer(server_address, RequestHandlerClass, bind_and_activate=True)
-
This uses the Internet TCP protocol, which provides for continuous streams of data between the client and server. If bind_and_activate is true, the constructor automatically attempts to invoke 登录查看完整内容