These are chat archives for anacrolix/torrent

May 2018
May 19 2018 13:51
@anacrolix question regarding how DHT and the torrent libraries interact, having trouble following the torrent code: how does the torrent know which peers to communicate with to fetch pieces
I see the get_peers query for a particular info hash.
case "get_peers": var r krpc.Return // TODO: Return nodes. s.setReturnNodes(&r, m, source) r.Token = s.createToken(source) s.reply(source, m.T, r)
DHT by itself doesn't seem to be able to return two nodes announcing the same info hash?