Пример #1
0
 def get_peers(self, infohash, callback):
   log_msg("Sending DHT get peers message", 4, "dht")
   response = _make_callback(callback)
   UTKhashmir.get_peers(self, infohash, response)
Пример #2
0
 def get_peers_and_announce(self, infohash, port, callback):
   log_msg("Sending DHT get peers and announce messages", 4, "dht")
   response = _make_callback(callback)
   #UTKhashmir.get_peers_and_announce(self, infohash, port, response)
   UTKhashmir.get_peers(self, infohash, response)
Пример #3
0
 def __init__(self, port, dataFileName):
   UTKhashmir.__init__(self, "", port, dataFileName, Scheduler.schedule_once, Globals.reactor.listenUDP)
   add_bootstrap_nodes(self)
Пример #4
0
 def get_peers(self, infohash, callback):
     log_msg("Sending DHT get peers message", 4, "dht")
     response = _make_callback(callback)
     UTKhashmir.get_peers(self, infohash, response)
Пример #5
0
 def get_peers_and_announce(self, infohash, port, callback):
     log_msg("Sending DHT get peers and announce messages", 4, "dht")
     response = _make_callback(callback)
     #UTKhashmir.get_peers_and_announce(self, infohash, port, response)
     UTKhashmir.get_peers(self, infohash, response)
Пример #6
0
 def __init__(self, port, dataFileName):
     UTKhashmir.__init__(self, "", port, dataFileName,
                         Scheduler.schedule_once, Globals.reactor.listenUDP)
     add_bootstrap_nodes(self)