[Members] JID Naming and a possible JID Object Model
astro at spaceboyz.net
Thu Aug 17 22:23:39 CDT 2006
Chris Mullins wrote:
> I've never liked JID, although not due to the acronym. I dislike the
> overloading of the term:
> All of these are JID's:
> cmullins at jabber.org
> cmullins at jabber.org/resource
But, as you named it, the two latter ones are Bare JID and Full JID.
Can't you map them into your OOP paradigm?
> I would love to get a nice Object Model put together for this, and for a
> few of the other common XMPP and JEP components.
> Anyone besides me think this would be benficial?
Yes. I once stumbled upon XMPP4R which was written by Lucas Nussbaum. I
was then overwhelmed by its clear structure. Now I'm the maintainer and
I don't feel I've continued that flavour. But let me outline the core
concept in OOP:
The Stream class is responsible for dealing with the stream parser and
firing stanza callbacks. The Connection class cares about TCP
connections. The Client and Component classes care about client and
component specific initialization and authentication.
Other libraries do different, do they?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://mail.jabber.org/pipermail/members/attachments/20060818/32da4be7/attachment.pgp
More information about the Members