When you place a .torrent
file for download in your website, how can you get the number of Seeds & Peers for that Torrent and inform the user of them?
"1 (2) seeds" means that you are connected to 1 out of 2 available seeds. Thus, "1 (4) peers" means you are connected to 1 out of 4 available peers. There really isn't any "optimal" ratio of seeds/peers.
Disable files that you don't need to download. You'll often find that less-popular files (e.g., tutorials or uninstallers) included in torrents have far fewer individual seeds. Low numbers of seeds can cause a file to get stuck while downloading, so unchecking these files will speed up your download.
The more seeds, the better the download rate. However, it is good to have more peers in addition to the seeders, as the downloaders can utilize both. Once a file is fully seeded, the BitTorrent application automatically stops the seeding process and the file can then be removed from the seeding list.
If you seed (upload) a full copy of your downloaded content, you have a 1:1 sharing ratio. Private trackers require members to maintain at least a 1:1 sharing ratio to ensure members contribute to their communities. This means members must seed (upload) the same amount they leech (download) and, in some cases, more.
You have to contact the tracker(s) that is shown in the torrentfile. If the tracker support "scraping" that is probably the request you want. Otherwise its up to the tracker to decide how many peers it wants to return to you, and you have no idea if those peers is a seed or leech before contacting them.
The torrentfile is in bencoded format, look for the bdecode php library to easily parse the info.
Provide the infohash you get from the pieces information in the metadata and the tracker will respond if you follow the protocol, read http://en.wikipedia.org/wiki/BitTorrent_%28protocol%29 for more information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With