def METHOD_NAME(self):
    logging.info("Serving SSDP on %s as %s", self.__host, self.__server_name)
    # the standard multicast settings for SSDP:
    MCAST_GRP = "239.255.255.250"
    MCAST_PORT = 1900
    MULTICAST_TTL = 2
    while not self.__stop:
        # Do network stuff
        # Create socket, send the broadcast, and close the socket again
        try:
            with socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) as sock:
                sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, MULTICAST_TTL)
                sock.sendto(self.__mySSDPbroadcast, (MCAST_GRP, MCAST_PORT))
        except:
            # probably no network
            pass
        # Wait until awoken or timeout is up
        with self.__condition:
            self.__condition.wait(self.__ssdp_broadcast_interval)