如何从洪流跟踪器响应中获取对等列表 [英] how to get the peer list from torrent tracker response

查看:249
本文介绍了如何从洪流跟踪器响应中获取对等列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个torrent客户端。我解码torrent文件并将此请求发送给跟踪器:

I am making a torrent client. I decode the torrent file and send this request to the tracker:

http://tracker.mininova.org/announce?uploaded=0&downloaded=0&compact=0&event=started&peer_id=12345678987654321234&port=6881&info_hash=%18%28n%23K%ECt%B7%93S%C5%F1-%F3%1C%18k%CEX%A4&left=0 

这就是我收到的:

and this is what I received:

{'min interval': 1800, 'peers': '', 'interval': 1800, 'complete': 37, 'incomplete': 0}

为什么对等列表是空的?有37个同龄人是播种者,我不应该从他们那里得到一些同辈信息吗?

Why is the peer list empty? There are 37 peers that are seeders, shouldn't I get some peer information from them?

空的同行名单是因为追踪者不会向其他种子发送种子,并且在请求时没有注册的猎人。

The reason that you got an empty peer list is because the tracker don't send seeds to other seeds and there was no leechers registered at the moment of the request.

追踪者将您注册为种子因为您在请求字符串中发送了& left = 0 ,表明您拥有完整的torrent。

请参阅: https://wiki.theory.org/BitTorrentSpecification#Tracker_Request_Parameters

The tracker registered you as a seed because you sent &left=0in the request string, indicating that you have the complete torrent.
See: https://wiki.theory.org/BitTorrentSpecification#Tracker_Request_Parameters

这篇关于如何从洪流跟踪器响应中获取对等列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆