Getting Started with Python (twenty-five) - socketserver Module Review

1. socketserver Module Introduction

socketserver socket and the threading module is encapsulated module for concurrent services, this section only review the basic method of use and method of use based on the basic, and combined with the basic knowledge of how to run the class understanding the entire process.

2. The basic syntax

The main change is server-side, with the object the establishment of n servers

# Author:AD
# Date:2020/3/9
import socketserver, time


class MyServer(socketserver.BaseRequestHandler):
    

Guess you like

Origin blog.csdn.net/HMMorange/article/details/104748301