Can I get all incoming packet?

I found in the debug mode, the debug window has a raw incoming packet tab and shows all the incoming packet, can I get all incoming packet in my own code? Because I need some msg that refused by the smack, I cant get them by using listener or collector,

finally i got what i need using ProviderManager, but i still want to know how to get all the incoming packet