frostwire / frostwire-jlibtorrent

A swig Java interface for libtorrent by the makers of FrostWire. Develop libtorrent based apps with the joy of coding in Java.
http://www.frostwire.com
MIT License
451 stars 138 forks source link

A little question - Peers and Seeders #248

Closed carlos-hns closed 3 years ago

carlos-hns commented 3 years ago

I'm new using the library and torrent, i've been reading the code examples and i've trying to understand but the question persist..I want get the amount of peers and seeders currently are in a magnet link, how i can do it?

gubatron commented 3 years ago

Check this out Carlos https://github.com/frostwire/frostwire/blob/master/desktop/src/com/frostwire/gui/components/transfers/TransferDetailPeers.java

gubatron commented 3 years ago

Also, on the regular transfer's table, you can checkout how the dataline fills up the number of connections/seeders

Here https://github.com/frostwire/frostwire/blob/master/desktop/src/com/frostwire/gui/bittorrent/BTDownloadDataLine.java

And here https://github.com/frostwire/frostwire/blob/master/desktop/src/com/frostwire/gui/bittorrent/BTDownloadMediator.java