I want it to be "idiot proof"...

I want the installation instructions for this program to be
"put it somewhere and run it"

I don't want to assume that the user will know.  I don't
even want to know what port *your* server is running on...
I want to develop a function which will reliably tell me
what port freenet is using on any given local machine.  If
there isn't a method somewhere in freenet.jar, I am going to
search in freenet.ini (in windows) and .freenetrc (in Unix).
In order to search the files...  I have to know where most
people keep them.

In PERL there is a special variable which tells you what
platform you are running on.

PERL is an excellent cross platform "control language" for
Java in my opinion.

Here is what I mean...  look at getjavapath() and
getnullfile()...



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Greg
Wooledge
Sent: Saturday, July 21, 2001 4:25 AM
To: [EMAIL PROTECTED]
Subject: Re: [freenet-chat] Where is yours...?


Michael D. Carey ([EMAIL PROTECTED]) wrote:

> Is there some other way to determine what port the node is
> operating on?

You could do something horribly radical like asking the
user....

freenet_request.pl

Reply via email to