check out: http://codereview.appspot.com/2404

this patch introduces the hook "HandleStanza" which is called whenever the
server receives a stanza that is not "iq", "presence", "message" or
"starttls".

Something in the hook chain must call the 'accept' callback to signify the
class
to use for the stanza downbless, otherwise.. we continue on to the existing
behavior which is to return a stream error.

On Fri, Jun 13, 2008 at 11:04 PM, Brad Fitzpatrick <[EMAIL PROTECTED]> wrote:

> 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 <[EMAIL PROTECTED]>
> 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
>>
>
>

Reply via email to