From: "Tavin Cole" <[email protected]>

> You're trying to use the java client API from a C program???
> *cough* libfreenet *cough*

I've looked at libfreenet.

Libfreenet isn't yet ported to *native* Windows, nor is OpenSSL on which it
depends.
(I might attempt this sometime, but it's not high on the list at the moment.
(Also, I know that cygwin may make such porting easier, but it creates
another set of problems, so I don't want to use it - I insist on building my
client Win32 native))

Cheers
David


>
>
> On Sat, Apr 14, 2001 at 01:39:18PM +1200, David McNab wrote:
> > > I can see why somebody coming from C would like to approach it this
way -
> > > but trust us, you are better off getting used to the OO approach to
this.
> > > Static method should simply be avoided.
> >
> > Yes - I'll get off it when I'm more skilled at it.
> > But for now, it's very convenient for 2 reasons:
> > 1) When driving Java Native Interface from the C side, it's far easier
to
> > access static methods/attributes than object ones.
> > 2) From my limited present understanding of Freenet, and its class
> > structures, it looks like unrelated areas of functionality are tightly
> > coupled together, and that the class interfaces are not very
"black-boxy". I
> > do anticipate that experience and deeper insight will prove me wrong - I
> > admit that this is just my present perception.
> >
> > At present, (quick - grab your barf bag!) I'm hooking into Freenet via a
> > client wrapper class, Freenet.client.Jni
> > This is part of an "Idiot's Freenet C library" I've written, called
libFCJ.
> > I'm sure I'll look back on this in time and laugh heartily at myself.
> > But for now, it's meeting a need - I'm working on a cushy Win32 GUI
client,
> > and want to get it up and out ASAP. Looking good so far (imho).
> > All going well, I'm a week or two from alpha (round 2).
> >
> > David
> >
> > ----- Original Message -----
> > From: "Oskar Sandberg" <oskar at freenetproject.org>
> > To: <devl at freenetproject.org>
> > Sent: Saturday, April 14, 2001 1:07 PM
> > Subject: Re: [freenet-devl] "Freenet/CLI/library" flag
> >
> >
> > > On Sat, Apr 14, 2001 at 12:11:32PM +1200, David McNab wrote:
> > > > > 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).
> > >
> > > I can see why somebody coming from C would like to approach it this
way -
> > > but trust us, you are better off getting used to the OO approach to
this.
> > > Static method should simply be avoided.
> > >
> > > _______________________________________________
> > > Devl mailing list
> > > Devl at freenetproject.org
> > > http://lists.freenetproject.org/mailman/listinfo/devl
> > >
> >
> >
> > _______________________________________________

Reply via email to