Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Development & Coding > Development Open Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Development Open Discussion Anything else about the Phex development


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 5th, 2011
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Both is possible:

Ultrapeer: You can force Phex to be ultrapeer by setting the preference:
Connection.ForceToBeUltrapeer = true
or modify class PrivateNetworkConstants.DEFAULT_FORCE_TOBE_ULTRAPE ER

Otherwise check Servent.isAbleToBecomeUltrapeer() for the conditions that need to apply for a servent to become ultrapeer.


The file src/main/resources/phex/resources/phex.hosts contains a list of hosts Phex tries to connect to on startup.
If you like to create a real private network, there are a few code changes that need to be applied. There should be some outdated instructions in the forum and on the Phex wiki. If you like to experiment with it and like to help to incorporate this into the source with an easy "private" switch, it would be very cool.

Gregor
__________________
Reply With Quote
  #2 (permalink)  
Old June 6th, 2011
Disciple
 
Join Date: June 2nd, 2011
Location: Bremen (Germany)
Posts: 17
giorgiob is a great assister to others; your light through the dark tunnel
Default

Since I would like to write an application that exchanges files using phex, I would like to set up my local network to test it first, i.e. I want that
  1. phex connects to specific hosts in my network
  2. phex does not look for further peers on the internet, even if it is connected to the internet
I do not understand exactly why I need to change the source code, shouldn't it be sufficient to change the hosts file?

Anyway, I will look at instructions in the forum before I proceed.

Thanks for the feedback.
Reply With Quote
  #3 (permalink)  
Old June 17th, 2011
Disciple
 
Join Date: June 2nd, 2011
Location: Bremen (Germany)
Posts: 17
giorgiob is a great assister to others; your light through the dark tunnel
Default

I have managed to get Ubuntu on some old computer and start phex from there. I also started phex on my main computer and both servents are connected to each other.
So, I have a network of two computers. Now I have a folder phex in my home directory. It contains three folders: download, incomplete, shared

I have put a file (some mp3 whose file name contains the word "bach") in folder shared. From phex I have added the shared folder to Library -> Shared Files. But now, if I start a search on the other phex servent (search for "bach") I get no result.

Does anyone have an idea as to what I might be doing wrong?

Thank you in advance and many greetings
Giorgio

Last edited by giorgiob; June 17th, 2011 at 01:13 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 10:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.