#server import socket import threading import time SIZE = 4 soc = socket.socket(socket.AF_INET,socket.SOCK_STREAM) soc.bind((‘127.0.0.1’,5532)) soc.listen(5) class CThread(threading.Thread): def __init__(self,c): threading.Thread.__init__(self) self.conn = c self.stopIt=False def…