tcpsockets/server.py
def stopper(self) -> None:
        """
        A stopper method running in its own thread to stop the server if it is stuck in the blocking socket.accept.
        Creates a new socket to stop socket.accept.

        Returns:
            None
        """
        while 1:
            if not self.running and not self.handling:
                closer_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
                try:
                    closer_socket.connect((self.ip, self.port))
                except ConnectionRefusedError:
                    return
                closer_socket.close()
                break

        A stopper method running in its own thread to stop the server if it is stuck in the blocking socket.accept.
        Creates a new socket to stop socket.accept.

        Returns:
            None
        
A stopper method running in its own thread to stop the server if it is stuck in the blocking socket.accept.
Creates a new socket to stop socket.accept.
A stopper method running in its own thread to stop the server if it is stuck in the blocking socket . accept . Creates a new socket to stop socket . accept .
def stopper(self) -> None:
        while 1:
            if not self.running and not self.handling:
                closer_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
                try:
                    closer_socket.connect((self.ip, self.port))
                except ConnectionRefusedError:
                    return
                closer_socket.close()
                break
def stopper ( self ) -> None : while 1 : if not self . running and not self . handling : closer_socket = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) try : closer_socket . connect ( ( self . ip , self . port ) ) except ConnectionRefusedError : return closer_socket . close ( ) break
A stopper method running in its own thread to stop the server if it is stuck in the blocking socket.accept.
A stopper method running in its own thread to stop the server if it is stuck in the blocking socket . accept .
"""
        A stopper method running in its own thread to stop the server if it is stuck in the blocking socket.accept.
        Creates a new socket to stop socket.accept.

        Returns:
            None
        """
None
self