socketserver 模块的构成

# socketserver 模块的构成
# server类:处理链接;request类:处理通信
import socketserver
# server类:
# BaseServer
# TCPServer(BaseServer)
# UDPServer(TCPServer)
# Unix系统
# UnixStreamServer(TCPServer)
# UnixDatagramServer(UDPServer)
# 基于进程
# ForkingTCPServer(ForkingMixIn, TCPServer)
# ForkingUDPServer(ForkingMixIn, UDPServer)
# 基于线程
# ThreadingTCPServer(ThreadingMixIn, TCPServer)
# ThreadingUDPServer(ThreadingMixIn, UDPServer)

# request类:
# BaseRequestHandler
# StreamRequestHandler(BaseRequestHandler)
# DatagramRequestHandler(BaseRequestHandler)

 

posted @ 2018-08-16 00:47  四十不惑的编程之路  阅读(128)  评论(0编辑  收藏  举报