Coder Social home page Coder Social logo

Comments (8)

dessalines avatar dessalines commented on August 18, 2024

@aldenml I also just tried doing this with PeerLogAlert as a TorrentAlertAdapter too, but neither worked.

from frostwire-jlibtorrent.

aldenml avatar aldenml commented on August 18, 2024

Pass true in the logging parameter, see https://github.com/frostwire/frostwire-jlibtorrent/blob/master/src/main/java/com/frostwire/jlibtorrent/Session.java#L91

from frostwire-jlibtorrent.

dessalines avatar dessalines commented on August 18, 2024

@aldenml Thanks! Do you guys have some sample values for some of those params. I have no idea what iface for example should be:

Session(Fingerprint print, Pair<Integer, Integer> prange, String iface, List<Pair<String, Integer>> routers, boolean logging)

I would like to use this one though, because I like being able to set a custom port range.

from frostwire-jlibtorrent.

aldenml avatar aldenml commented on August 18, 2024

Follow this code: https://github.com/frostwire/frostwire-desktop/blob/master/src/com/limegroup/gnutella/gui/Initializer.java#L449

from frostwire-jlibtorrent.

dessalines avatar dessalines commented on August 18, 2024

Okay, so I have prange, iface, logging, but not Fingerprint or routers. Neither of those are set in BTEngine.java either, because they're using a different constructor.

from frostwire-jlibtorrent.

dessalines avatar dessalines commented on August 18, 2024

@aldenml wait, nm, I found some defaults in the https://github.com/frostwire/frostwire-jlibtorrent/blob/master/src/main/java/com/frostwire/jlibtorrent/Session.java

Sorry aboot that.

from frostwire-jlibtorrent.

dessalines avatar dessalines commented on August 18, 2024

It might be useful to make defaultRouters public: https://github.com/frostwire/frostwire-jlibtorrent/blob/master/src/main/java/com/frostwire/jlibtorrent/Session.java#L1071

from frostwire-jlibtorrent.

gubatron avatar gubatron commented on August 18, 2024

making defaultRouters public won't really do anything for you, it's a fixed list of routers that you can always see in the code. If you need to use different default routers, then you gotta use the other constructor that takes a list of routers of your chosing.

from frostwire-jlibtorrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.