首页 > TAG信息列表 > sockserver
利用sockserver快速实现TCP服务器
from socket import socket import socketserver import sys class MyTCPRequestHandler(socketserver.StreamRequestHandler): def handle(self) -> None: while True: print('[-] Got connection from %s: %s' % (self.client_addre