def client_handler_thread(self, clientsocket, address): """ Sends the client id assigned to this clientsocket and Creates a new ClientHandler object See also ClientHandler Class :param clientsocket: :param address: :return: a client handler object. """ # are we not sending data? # self.send_client_id(clientsocket,address[1]) #TODO: create a new client handler object and return it chObject = ClientHandler(self, clientsocket, address) chObject.process_client_data() return chObject
def thread_client(self, clienthandler, addr): clienthandler = ClientHandler(self, clienthandler, addr) data = clienthandler.process_client_data() """
def thread_client(self, clienthandler, addr): # init the client handler object c = ClientHandler(self, clienthandler, addr) c.process_client_data()
def thread_client(self, clienthandler, addr): someobject = ClientHandler(self, clienthandler, addr) someobject.process_client_data()