> Why do you find you need to use CLI?  If there is a good reason, I can
make
> the functionality available through the standard API.  I'd rather CLI not
be
> used as a library.

I'm cutting a client.
Also, I'm totally new to the Java language (but experienced in C).
(And hopelessly new to Freenet as well, as embarrassingly revealed in my
prior posts).

The CLI classes give me an easy 'black box' access to Freenet, which allows
me to implement my functionality faster.
The handy thing about these classes is that they give me a point of access
which is within my present skill levels, and doesn't require me to
re-implement any existing functionality, or know Freenet internals.

I'm sure as my knowledge of Java and Freenet grows over time, I'll feel
confident to access Freenet in more 'technically correct' ways.
But for now, the CLI access, and the Freenet.client.CLI.library flag, are an
absolute god-send.

David

----- Original Message -----
From: "Tavin Cole" <[email protected]>
To: <devl at freenetproject.org>
Sent: Friday, April 13, 2001 2:54 PM
Subject: Re: [freenet-devl] "Freenet/CLI/library" flag


> Why do you find you need to use CLI?  If there is a good reason, I can
make
> the functionality available through the standard API.  I'd rather CLI not
be
> used as a library.
>
> On Fri, Apr 13, 2001 at 01:44:38PM +1200, David McNab wrote:
> > Sorry, Oskar.
> >
> > BTW - Freenet.client.CLI.library is a little flag in
> > Freenet/client/CLI.java. I felt very relieved to discover it.
> >
> > If set to 'false' (which is the default), then CLI-derived classes such
as
> > RequestClient do a System.exit() when they complete an operation.
> > This is ideal when such methods are invoked as a result of a CLI
command,
> > such as 'freenet_request' issued from a shell command or script, when
> > control needs to be returned promptly to the invoking shell.
> >
> > But if Freenet.client.CLI.library is set to false, then CLI methods will
> > return to the caller without performing System.exit().
> > This makes it possible for other classes to invoke these methods as

Reply via email to