AnsweredAssumed Answered

Drop packets after processing them

Question asked by evil on Nov 7, 2008


I am receiving Message headlines with custom extension.

I created a provider to parse them correctly, and now my plugin treats them properly (with a MessageFilter function).

My problem is that before or after the same message is also processed by the standard Spark filters, thus a window is opened for the message.


I want to avoid that.

I think that a way could be to add a listener with my own packet filer, so when a packet matches the filter, i do whatever i want with it and return accept->false, so it is dropped, otherwise i return immediately accept->true and let it be processed further.

Problem is: how can i force my listener to be the first? Otherwise the window is opened before i drop the packet.


Does my idea make sense? Do you have any suggestions how to do it?