Connecting to torrent trackers / peers

不打扰是莪最后的温柔 提交于 2019-12-06 16:29:38

The inofficial Wiki.theory.org/BitTorrentSpecification is without doubt the very best place to start learning about the BitTorrent protocol, but it is incomplete. It only covers the base protocol and the extensions that was developed in the early years. That's why you can't find all the information you need there.

Since 2008 the official* documentation of the protocol can be found at BitTorrent.org.
The official version of the base protocol is the terse and dense BEP3 - The BitTorrent Protocol Specification.

Magnet links is covered in BEP9 - Extension for Peers to Send Metadata Files.
There can you read:

If no tracker is specified, the client SHOULD use the DHT to acquire peers.

The DHT is specified in BEP5 - DHT Protocol.

As you have noticed, trackers nowadays use UDP, that is specified in BEP15 - UDP Tracker Protocol.


footnote: * Official only means that it's run by BitTorrentInc, not that it's superior or the only source to use. The BitTorrent protocol is not governed by authority. None client has pledged allegiance to BEP. The protocol is formed by consensus from what clients in the real do.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!