| > 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
}
| |