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)
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)
def __init__(self, port, dataFileName): UTKhashmir.__init__(self, "", port, dataFileName, Scheduler.schedule_once, Globals.reactor.listenUDP) add_bootstrap_nodes(self)