Go Back   FlashFXP Forums > > > >

Suggestions Post suggestions for upcoming versions

 
 
Thread Tools Display Modes
Old 07-25-2003, 07:47 AM   #1
Csimbi
Junior Member
 
Join Date: Jul 2003
Posts: 3
Lightbulb SFV integration

I have a feature that would be nice to have in future versions.
It is about integration of SFV checks into FlashFXP.
Here are the options that are needed:
[Checkbox1] Check SFV files if exist.
[Checkbox2] Re-download failed files [SpinEdit1] times.

Dynamic behaviour:
Code:
[Checkbox1]::OnChange(...) {
  if ([CheckBox1]->Enabled)
  {
    [Checkbox2]->Enabled=true;
    [SpinEdit1]->Enabled=true;
    //... other code if needed
  }
  else
  {
    [Checkbox2]->Enabled=false;
    [SpinEdit1]->Enabled=false;
    //... other code if needed
  }
}
How it would work when it is turned on:
1. SFV files downloaded first from the server is they exist (each if there are more) in the dir where the files are.
2. When a file is downloaded, its CRC is checked.
3. Let's see what we have to do.
Code:
switch (CRC){
  case good: break; //nothing to do - just remove from queue as usually

  case bad:{
    if ([CheckBox1]->Enabled && ![CheckBox1]->Enabled)
      {
        AddToLog(Source, "SFV CRC check failed.); // Add an entry to log that CRC failed
        MarkFailedInQueue(Source): // Mark the file failed in the queue
        break;
      }
    if ([CheckBox1]->Enabled && [CheckBox1]->Enabled)
      {
        if(Source->CRCRetry<=SpinEdit1->Value)
        {
          DeleteLocalFile("Target"); //Delete bad local file
          MoveFileInQueueToFront(Source); // Move the file to the front of the queue
          Source->CRCRetry++; // Increase re-download counter
        }
        else
        {
          AddToLog(Source, "SFV CRC check failed.); // Add an entry to log that CRC failed
          MarkFailedInQueue(Source): // Mark the file failed in the queue
        }
      }
     break;
}
For otimization You could for example cache the CRCs from the SFV files into the queue, and calculate CRC while downloading (in this case remember to check CRC on resumed files also).

So what do You think?
Would be a nice addition I believe, and would save users with bad connection a lot of time and work.
Csimbi is offline  
Old 07-25-2003, 08:40 AM   #2
DYN_DaTa
Senior Member
FlashFXP Scripter
 
Join Date: Jan 2002
Location: Madrid, Spain
Posts: 346
Default

Already suggested, next time use 'search' function.
DYN_DaTa is offline  
Old 07-25-2003, 10:49 AM   #3
Csimbi
Junior Member
 
Join Date: Jul 2003
Posts: 3
Default

Oh, really?
Sorry about the dupe then.
Csimbi is offline  
Old 07-25-2003, 06:51 PM   #4
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

untill there is "native" SFV support, you can use this
http://forum.flashfxp.com/showthread...&highlight=sfv
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
 

Tags
crc, failed, files, queue, sfv

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:51 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)