Packet function ( ) { while ( resultQueue . isEmpty ( ) ) { try { wait ( ) ; } catch ( InterruptedException loc0 ) { } } return resultQueue . removeLast ( ) ; }
returns the next available packet . the method call will block not return until a packet is available . concode_field_sep LinkedList<Packet> resultQueue concode_elem_sep int MAX_PACKETS concode_elem_sep boolean cancelled concode_elem_sep PacketFilter packetFilter concode_elem_sep PacketReader packetReader concode_field_sep void cancel concode_elem_sep Packet pollResult concode_elem_sep void processPacket concode_elem_sep PacketFilter getPacketFilter