Behaviour of PacketFilter

Hi,

in my application, I wanted to recieve all Packets of type Message. So, I created a PacketFilter instance:

new PacketFilter(Message.class);

But, when I did so, nothing arrived my machine. When I additionally added a NotFilter, all seamed to work, I was expecting.

Do I misunderstand functionallity or is there a bug inside that class?

Tnanks

Dirk

Sorry, I talked about the PacketTypeFilter and not PacketFilter :-/

Dirk

Can you paste in more of the code you are using? Also, are you certain that Message packets are arriving to your machine?

Regards,

Matt

Sorry Matt!

The problem caused in a buggy client application (Psi).

When I used some other clients, everything went fine.

regards,

Dirk

I don’‘t think Psi is to blame here. I’‘m using both Smack and Psi myself, and I haven’‘t encountered any problems which weren’'t my own fault.