def kill(self):
        """
        Shut down the socket immediately.
        """

        self._socket.shutdown(socket.SHUT_RDWR)
        self._socket.close()
def kill ( self ) : self . _socket . shutdown ( socket . SHUT_RDWR ) self . _socket . close ( )
Shut down the socket immediately.