HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Immediately aborting download with function?
Author: Xavier Roche
Date: 05/16/2003 22:37
 
> All works nicely except for one thing. I can't seem to 
find 
> a function to immediately abort the downloading of a site.
> I can delete the thread instance but then the files it 
was 
> downloading can't be removed because they're still opened.
> So i was wondering if there was a way to immediately 
abort 
> all downloads, close all the files it was downloading, so 
i 
> can remove them? I'm thinking something like hts_abort ...

The only reliable way is to return 0 in the loop callback:

  hts_init();
..
  htswrap_add("loop",foo_loop);

And in the loop callback:

int __cdecl foo_loop(lien_back* back,int back_max,int 
back_index,int lien_n,int lien_tot,int stat_time, 
hts_stat_struct* stats) {

...
    return 0;    // abort mirror


}
 
Reply Create subthread


All articles

Subject Author Date
Immediately aborting download with function?

05/16/2003 11:22
Re: Immediately aborting download with function?

05/16/2003 22:37
Re: Immediately aborting download with function?

05/16/2003 23:08
Re: Immediately aborting download with function?

05/19/2003 10:12
Re: Immediately aborting download with function?

03/31/2010 12:18




3

Created with FORUM 2.0.11