private void processPacket ( Packet packet ) { if ( packet == null ) { return ; } // Loop through all collectors and notify the appropriate ones. for ( PacketCollector collector : connection . getPacketCollectors ( ) ) { collector . processPacket ( packet ) ; } // Deliver the incoming packet to listeners. listenerExecutor . submit ( new ListenerNotification ( packet ) ) ; }
Processes a packet after it s been fully parsed by looping through the installed packet collectors and listeners and letting them examine the packet to see if they are a match with the filter .