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
444 stars 137 forks source link

How to use this library? #229

Closed master255 closed 4 years ago

master255 commented 4 years ago

Scenario 1: I need to download the data sequentially and from the byte I need. When downloading, know exactly how many bytes have already been downloaded (I need a counter, how many bytes are already written). The data must be downloaded in multithreaded mode. There is no torrent file, but there are variables that contain all the necessary data. It takes a long time to generate a torrent file (a lot of pieces) so this option is not suitable. Scenario 2: I have torrent data in different variables. Having peers\hashes and all necessary data to find the pairs: ip,port. Can I use the library only to find peers? After the search, I plan to download the data myself. Does the library allow to implement these scenarios? How can I do it?