Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Development Open Discussion (https://www.gnutellaforums.com/development-open-discussion/)
-   -   Understanding the source code of Phex (https://www.gnutellaforums.com/development-open-discussion/80158-understanding-source-code-phex.html)

mako_123 January 11th, 2008 12:14 PM

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

GregorK January 12th, 2008 03:01 AM

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.

arne_bab January 14th, 2008 04:50 AM

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).

mako_123 January 14th, 2008 05:55 AM

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.

GregorK January 14th, 2008 08:08 AM

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..

arne_bab January 15th, 2008 05:55 AM

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).

arne_bab January 15th, 2008 05:57 AM

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

Generated Documentation (Untitled)


All times are GMT -7. The time now is 09:02 AM.

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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.