Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   Somebody has a Jtella example? (https://www.gnutellaforums.com/general-gnutella-development-discussion/85941-somebody-has-jtella-example.html)

robegs July 10th, 2008 11:23 AM

Somebody has a Jtella example?
 
I'm programming an aplications based on JTella, but I have some problems to connect the peers because JTella launch a exception:

java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at com.kenmccrary.jtella.util.SocketFactory.getSocket (SocketFactory.java:28)
at com.kenmccrary.jtella.Connection.startOutgoingConn ection(Connection.java:372)
at com.kenmccrary.jtella.OutgoingConnectionManager$Co nnectionStarter.run(OutgoingConnectionManager.java :227)


if I try to connect a lot of times and if I try to connect few times the peers not contects.
I need a complete example of a JTella aplication.

Thanks and sorry for my bad english.

arne_bab July 11th, 2008 12:00 AM

As far as I know, JTella is very outdated, now.

To have a client which offers most features of todays Gnutella you could build on Phex instead:
- http://sf.net/project/phex
- Phex - Home

Using Phex you'll also be able to find people who use it and can offer help.

robegs July 11th, 2008 01:44 AM

phex seens very difficult. My aplication only need do querys and get request. The Gnutella part is very Simple and the net must be private. There are some simple example of phex aplications??

arne_bab July 11th, 2008 01:59 AM

Not yet.

To make the net private, just choose a different network name in Phex.

Please have a look at the phex Search class to see if you grasp it.

https://phex.svn.sourceforge.net/svn...ry/Search.java

You can get the whole code via subversion:

svn co https://phex.svn.sourceforge.net/svn...ex/phex/trunk/

robegs July 11th, 2008 11:22 AM

I'm seeing the https://phex.svn.sourceforge.net/svn...phex/Main.java class, but I don't know if in this it is completely finished the configuration process, and with this I can do a query yet.

thanks for your help, I'm a noob with this.

arne_bab July 11th, 2008 10:41 PM

I'm glad to see that it already partly works.

Please head over to the Phex Development Board to get more advanced feekback:

Development Open Discussion - Gnutella Forums


All times are GMT -7. The time now is 07:57 PM.

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.