[jdev] SPPS and external components
Norman Rasmussen
norman at rasmussen.co.za
Sun Feb 19 05:04:31 CST 2006
On 2/18/06, Ralph Meijer <jabber.org at ralphm.ik.nu> wrote:
> On Sat, Feb 18, 2006 at 07:01:05PM +0200, Norman Rasmussen wrote:
> > On 2/18/06, Ralph Meijer <jabber.org at ralphm.ik.nu> wrote:
> > > On Tue, Jan 24, 2006 at 04:04:40PM +0200, Norman Rasmussen wrote:
> > > I think that jabberd 2 has another component protocol that would allow
> > > this. You can route stanzas according to the namespace of the child of
> > > iqs. I haven't had the time to try that out, though.
> >
> > It doesn't help with disco items though, as those are in the disco
> > namespace which used for other things as well - I think. You'd have
> > to make the PEP component handle _all_ disco registrations and
> > requests - which isn't terrible I guess.
>
> Looking again, the sm.xml file defines chains of modules to be called
> when a packet arrives at a certain entry point. Each module then
> inspects the packet to see if it can handle it. If not, it is given to
> the next module in the chain. Making sure that the PEP module
> is put before the disco module in the chain, you can selectively hijack
> the PEP specific packets.
yep, this is undoubtably the best place to 'plug in' PEP
functionality. I'd imagine that if you made it a full c module, then
you'd get roster subscription status for free too.
--
- Norman Rasmussen
- Email: norman at rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
More information about the JDev
mailing list