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 self.running or self.handling:
            pass
        closer_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        try:
            closer_socket.connect((self.ip, self.port))
        except ConnectionRefusedError:
            pass
        closer_socket.close()

        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 self.running or self.handling:
            pass
        closer_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        try:
            closer_socket.connect((self.ip, self.port))
        except ConnectionRefusedError:
            pass
        closer_socket.close()
def stopper ( self ) -> None : while self . running or self . handling : pass closer_socket = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) try : closer_socket . connect ( ( self . ip , self . port ) ) except ConnectionRefusedError : pass closer_socket . close ( )
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