Consolidated realPacketLength and PacketComplete into one function.
Applied hopefully a better patch for incomplete fragments/packets.