Re: Jabber

Rodney Dawes <[email protected]> Sun, 28 Mar 2004 12:58:34 -0500
Newsgroups gmane.network.everybuddy.devel
Message-ID <[email protected]>
On Die , 2004-03-21 at 23:10 -0500, Cory McWilliams wrote:
> On Sunday 21 March 2004 10:32 pm, Rodney Dawes wrote:
> > On Die , 2004-03-21 at 11:26, Cory McWilliams wrote:
> >
> > > I have a few minor changes I've had on the back of my mind, but I'm
> > > really not sure how far to take this.  What features would people want
> > > from it?
> >
> > Is there any reason you aren't using a jabber library that already has
> > all of the features, and just plugging that in to the eb core? Have you
> > looked at loudmouth or any of the other jabber libs?
> 
> Yes, I tried my best to find something appropriate so that I wouldn't need to 
> do much work.  Everything I found either seemed so low-level that I might as 
> well do it myself or required dependencies above and beyond what people 
> seemed to want for the core.
> 
> Loudmouth seems to do both.  It requires glibc, and unless I'm missing 
> something, it doesn't do much beside managing connections and translations 
> between XML and structured representations of the data.  My biggest problem 
> seems to be interpreting messages at a higher level.

Yes, it does require glib, (not glibc, everything on lunix requires
glibc) :). It seems like structured data is what you'd want to deal with
in C. Otherwise, you end up duplicating all the XML->struct conversion
that it already does anyway.

> I am certainly not opposed to taking a different route.  My current position 
> is that it was easy enough to pull this together that it's not necessary to 
> use something else that might not quite fit our requirements.  Any other 
> opinions on this?

> In any case, do any of the other protocols implement registering accounts?  I 
> wouldn't mind handling that, but I don't see how it would fit in.

I don't think any of the ones that eb-lite supports, do. I'm not sure
what else supports registering accounts. It would probably be best to do
this through the dialogs system in eb-lite, where the plug-in tries to
do the log-in, and the server responds with an unregistered error (at
least, I think jabber actually says "unregistered" or something). Then
the UI can pop up a dialog saying the user isn't registered, and could
ask them to register, and when they click "yes" or whatever, the plug-in
can do the registration and actually log them in.

-- dobey