Plugins to handle new types of stanzas

Brad Fitzpatrick brad at danga.com
Sat Jun 14 03:04:01 UTC 2008


Submit a patch which add the right plugin hooks to DJabberd's core first?
Then write your clean plugin?

On Fri, Jun 13, 2008 at 12:41 PM, Jacob Burkhart <igotimac at gmail.com> wrote:

> Hi,
> I am in the process of writing a plugin to support stream compression (
> http://www.xmpp.org/extensions/xep-0138.html).
>
> I can't seem to find a way to setup my plugin as the handler for a new
> stanza type (<compress>) without directly editing the list of %element2class
> in ClientIn.pm
>
> Also, Once I receive this new stanza  'write' and 'event_read' need to
> be overridden on the active connection so that further communication is
> compressed.
>
> I can easily hack this into Connection.pm and ClientIn.pm but I want to
> keep the changes contained within my plugin.
>
> Any ideas?
>
> thanks,
> Jacob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/djabberd/attachments/20080613/0b8ea52e/attachment.htm 


More information about the Djabberd mailing list