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 January 11th, 2008
Apprentice
 
Join Date: October 7th, 2007
Posts: 5
mako_123 is flying high
Default Understanding the source code of Phex

Hi Guys

I am interested in understanding the source code of Phex . Since there are a lot of files, i dont know where to start. Can anyone give me some idea on how i should i go about understanding it ? In the beginning i would like to know about how it connects with other users . Do guide me

Regards

Madhur
Reply With Quote
  #2 (permalink)  
Old January 12th, 2008
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Are you referring to the source code from the last release or the latest source from SVN.

The architecture of Phex in SVN has (will be) changed quite significantly.
__________________
Reply With Quote
  #3 (permalink)  
Old January 14th, 2008
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

I think the code in SVN should be of most interest, especially because we can just provide URLs to its parts

The main trunk is at: SourceForge.net Repository - [phex] Index of /phex/trunk/src
(just added here for convenience )

Besides: The SVN version of Phex runs quite stable (I only use SVN, and it seldomly gives me any problems).
__________________

-> 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.
Reply With Quote
  #4 (permalink)  
Old January 14th, 2008
Apprentice
 
Join Date: October 7th, 2007
Posts: 5
mako_123 is flying high
Default

I was referring to the source code from the last release. Can you tell me from which file should i start studying it so that i can understand it confartably.
Reply With Quote
  #5 (permalink)  
Old January 14th, 2008
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

The most central classes in the last release are all the Manager classes.
They are all defined and initialized in the ManagerController class.
Every "module" in Phex has its own Manager class.

Regarding your question how Phex connects: The triggering of outgoing connections happens in the HostManager.doAutoConnectCheck() method. Incoming connection are accepted in the OIOServer class.

Please ask if you need any more guidance..
__________________
Reply With Quote
  #6 (permalink)  
Old January 15th, 2008
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

You should best study the SVN version, because this is where you can contribute back, if you stumble over something which gets you thinking (even if it's only a missing or outdated comment).
__________________

-> 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.
Reply With Quote
  #7 (permalink)  
Old January 15th, 2008
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

The javaDocs might also help you get comfortable with the code.

Generated Documentation (Untitled)
__________________

-> 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.
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 01:43 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.