tcpsockets/server.py
def starter(self):
        """
        The starter method is responsible for accepting connections from clients passing them to the client_handler and
        creating a new thread.
        Returns:
            None
                """
        self.running = True
        self.stopper_thread.start()
        logger.log(f"Listening for connections on {self.ip} at {self.port}")
        self.socket.listen(self.queue)
        client, address = self.socket.accept()
        while self.running:
            new_client = Client(client, address)
            self.clients.append(new_client)
            logger.log(f"Connection from {address}")
            handler_thread = threading.Thread(target=lambda: self.client_func(new_client))
            self.client_threads.append(handler_thread)
            handler_thread.start()
            client, address = self.socket.accept()
        while self.handling:
            pass
        self.socket.close()
        logger.log(f"Closed server")
        logger.close_log_files()

        The starter method is responsible for accepting connections from clients passing them to the client_handler and
        creating a new thread.
        Returns:
            None
                
The starter method is responsible for accepting connections from clients passing them to the client_handler and
creating a new thread.
The starter method is responsible for accepting connections from clients passing them to the client_handler and creating a new thread .
def starter(self):
        self.running = True
        self.stopper_thread.start()
        logger.log(f"Listening for connections on {self.ip} at {self.port}")
        self.socket.listen(self.queue)
        client, address = self.socket.accept()
        while self.running:
            new_client = Client(client, address)
            self.clients.append(new_client)
            logger.log(f"Connection from {address}")
            handler_thread = threading.Thread(target=lambda: self.client_func(new_client))
            self.client_threads.append(handler_thread)
            handler_thread.start()
            client, address = self.socket.accept()
        while self.handling:
            pass
        self.socket.close()
        logger.log(f"Closed server")
        logger.close_log_files()
def starter ( self ) : self . running = True self . stopper_thread . start ( ) logger . log ( f"Listening for connections on {self.ip} at {self.port}" ) self . socket . listen ( self . queue ) client , address = self . socket . accept ( ) while self . running : new_client = Client ( client , address ) self . clients . append ( new_client ) logger . log ( f"Connection from {address}" ) handler_thread = threading . Thread ( target = lambda : self . client_func ( new_client ) ) self . client_threads . append ( handler_thread ) handler_thread . start ( ) client , address = self . socket . accept ( ) while self . handling : pass self . socket . close ( ) logger . log ( f"Closed server" ) logger . close_log_files ( )
The starter method is responsible for accepting connections from clients passing them to the client_handler and
creating a new thread.
The starter method is responsible for accepting connections from clients passing them to the client_handler and creating a new thread .
"""
        The starter method is responsible for accepting connections from clients passing them to the client_handler and
        creating a new thread.
        Returns:
            None
                """
None
self