Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Development Open Discussion (https://www.gnutellaforums.com/development-open-discussion/)
-   -   Simple Client (https://www.gnutellaforums.com/development-open-discussion/77582-simple-client.html)

cmaeschig November 15th, 2007 05:31 AM

Simple Client
 
Hi there,

I'm trying to develop some kind of fileserver-application which should be able to run server side (no gui) and serve files in a shared directory. are there any *simple* examples how to implement this using phex?
The sources I got from SVN seem to be a little bit complex....
Thanks a lot in advance,

Chris

cmaeschig November 15th, 2007 07:24 AM

Simple Client
 
Hi!

I'm still looking for a very simple and basic example on how to setup a client, which simply serves a few files (without gui, without the rest of the functionality ....). Could anyone please help?
Thanks a lot in advance,

Christoph :idea:

arne_bab November 16th, 2007 06:31 AM

As of now, there's an example how to start phex without gui.

Advanced Questions - PhexWiki

java -Xmx512m -Djava.awt.headless=true -jar phex.jar

This is a Java feature and still needs an xserver, since some java classes depend on it, but it doesn't need to have a display and can be run serverside.

You can setup the sharing diretory directly in the config files, and you can also switch from headless to full gui by just starting Phex differently (with the normal starting command).

Everything else should be a matter of stripping code.

Besides: The Phex subversion repository contains a shell script which builds and runs phex headless:
build-and-run-headless

How to get the code: Subversion - PhexWiki

Besides (2): We'd be glad, if you'd work in our public subversion repository (in a branch), so we can easily transfer those changes which would also benefit the mainline client.

arne_bab November 16th, 2007 06:36 AM

Besides (3): Our main programmer (GregorK) works on improving the Phex API, so it can be used more efficiently for other means but plain filesharing.

If you like to, you can have a look at our usecases for an API ( Concepts - PhexWiki ), where we created some possible uses for Phex, and we'd be glad if you could add your own.


All times are GMT -7. The time now is 08:00 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.