PacketListeners

Hi,

In case I add two PacketListeners for same packets class, does both of them will be notified about received packet of specified type?

Is there anyway to control flow between listeners and enable/disable default behavior such as preventing SUBSCRIBED reply to presence packet from specific user, even if roster subscription response is set to AUTO.

Thanks,

Gil

Hi Gil,

To answer your first question: all registered listeners receive the event.

It doesn’‘t seem to be possible to do what you want with the current implementation of the subscription handler. However, I must admit that I’'m not looking at the code (and my version of Smack is heavily modified anyway).