Ejemplo n.º 1
0
    def announce(self, infohash, peerid):
        discovery_logger.info("announcing: %s", infohash)
        service_name = "_BitTorrent-%s._tcp.local." % infohash
        
        # do I need to keep the browser around?
        browser = Zeroconf.ServiceBrowser(self.server, service_name, self)

        df = get_deferred_host_ip()
        df.addCallback(self._announce2, peerid, service_name)
        return df