![]() |
|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
Feature Requests & Bug Reports Is there anything you'd wish to see in Phex, or did you find some bugs? |
![]() |
| LinkBack | Thread Tools | Display Modes |
| ||||
![]() Hi ToNneTje, Quote:
![]() Which distribution do you use? (you need subversion, everything else should already be in place)
__________________ ![]() -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. |
| ||||
![]() It really isn't hard ![]() You just need to open a terminal and do the following few steps. First step: Getting subversion (for downloading the code) and maven (to build phex): Code: sudo apt-get install subversion maven2 Code: svn co https://phex.svn.sourceforge.net/svnroot/phex/phex/trunk phex Code: cd phex ./build-and-run Code: svn update ; ./build-and-run ![]() To now change Phex to always prefer Phex, just open the following file from the phex folder in your text editor and change the section I named in the earlier post: src/main/java/phex/host/CaughtHost.java And you can run ./build-and-run to run it. Voilą, your own modified Phex version ![]()
__________________ ![]() -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. |
| ||||
![]() Happy sharing!
__________________ ![]() -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. |
| ||||
![]() Great! You should be able to use sun-jdk (I use it on my Gentoo box): Code: sudo apt-get install sun-java6-jdk In the Phex code, you can just comment out the avgDailyUptime if clause. Commenting out in Java can be done by writing "/*" before the part and "*/" after the part,for example like this: Code: public boolean isDecentPhexHost() { if ( !StringUtils.equals( vendor, "PHEX" ) ) { return false; } /* if ( avgDailyUptime < 7200 ) { return false; } */ if ( !isUltrapeer ) { return false; } return true; } Besides: What this code does: * The first if clause checks if the other one is a Phex * The second checks if it has high uptime (decent client) * The third checks if it is an ultrapeer Only if all three are fullfilled, the host is called "decent Phex", and Phex preferences decent Phex'. By commenting out the second if clause, you preference all Phex ultrapeers. If you'd comment out the second and third, you'd also preference Phex leaves (which doesn't help you get connections and might even render your Phex unable to find Ultrapeers). All this applies only for the connections your program starts. Incoming connections have no preferencing.
__________________ ![]() -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. Last edited by arne_bab; January 28th, 2009 at 12:25 AM. |
| ||||
![]() PS: I just adapted this thread to turn it into a guide in our development section: http://www.gnutellaforums.com/develo...ntu-linux.html
__________________ ![]() -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. |
| |||
![]() Where must the code be modified in order to introduce preferencing in Incoming connections as well? |
| ||||
![]() I think you might have to add a new comparision feature to incoming connections. It will have to decide, if it wants to drop a working connection when it gets a new incoming one, and that code can get quite complicated (including a setting to reserve slots for other vendors to make sure that Phex doesn't isolate itself - or a setting to only grant at most 2/3rd of the slots to a specific vendor or similar to avoid isolation in a single-vendor-island). I'm not perfectly sure about the right place, but the OIOServer looks fitting: https://phex.svn.sourceforge.net/svn...OIOServer.java Gregor should know that better...
__________________ ![]() -> put this banner into your own signature! <- -- Erst im Spiel lebt der Mensch. Nur ludantaj homoj vivas. GnuFU.net - Gnutella For Users Draketo.de - Shortstories, Poems, Music and strange Ideas. |
![]() |
| |