Question: def _accept_clients(self): #TODO: Handle client connections to the server :return: VOID while True: try: clienthandler, addr = self.serversocket.accept() # T ODO: from the
def _accept_clients(self): """ #TODO: Handle client connections to the server :return: VOID """ while True: try: clienthandler, addr = self.serversocket.accept() # TODO: from the addr variable, extract the client id assigned to the client # TODO: send assigned id to the new client. hint: call the send_clientid(..) method self._handler(clienthandler) # receive, process, send response to client. except: # handle exceptions here pass #remove this line after implemented.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
