Logo Search packages:      
Sourcecode: httrack version File versions


/* ------------------------------------------------------------ */
HTTrack Website Copier, Offline Browser for Windows and Unix
Copyright (C) Xavier Roche and other contributors

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

Important notes:

- We hereby ask people using this source NOT to use it in purpose of grabbing
emails addresses, or collecting any other private information on persons.
This would disgrace our work, and spoil the many hours we spent on it.

Please visit our Website: http://www.httrack.com

/* ------------------------------------------------------------ */
/* File: httrack.c subroutines:                                 */
/*       backing system (multiple socket download)              */
/* Author: Xavier Roche                                         */
/* ------------------------------------------------------------ */


#include "htsglobal.h"
#include "htsbasenet.h"
#include "htscore.h"

/* Library internal definictions */

// backing
#define BACK_ADD_TEST "(dummy)"
#define BACK_ADD_TEST2 "(dummy2)"
int  back_index(lien_back* back,int back_max,char* adr,char* fil,char* sav);
int back_available(lien_back* back,int back_max);
LLint back_incache(lien_back* back,int back_max);
HTS_INLINE int  back_exist(lien_back* back,int back_max,char* adr,char* fil,char* sav);
int  back_nsoc(lien_back* back,int back_max);
int  back_nsoc_overall(lien_back* back,int back_max);
int  back_add(lien_back* back,int back_max,httrackp* opt,cache_back* cache,char* adr,char* fil,char* save,char* referer_adr,char* referer_fil,int test,int* pass2_ptr);
int  back_stack_available(lien_back* back,int back_max);
int  back_search(httrackp* opt, cache_back* cache, lien_back* back, int back_max);
void back_clean(httrackp* opt,cache_back* cache,lien_back* back,int back_max);
void back_wait(lien_back* back,int back_max,httrackp* opt,cache_back* cache,TStamp stat_timestart);
int  back_letlive(httrackp* opt, cache_back* cache, lien_back* back, int p);
int  back_searchlive(httrackp* opt, lien_back* back, int back_max, char* search_addr);
void back_connxfr(htsblk* src, htsblk* dst);
int  back_delete(httrackp* opt,cache_back* cache,lien_back* back,int p);
int  back_maydelete(httrackp* opt, cache_back* cache, lien_back* back, int p);
void back_maydeletehttp(httrackp* opt, cache_back* cache, lien_back* back, int back_max, int p);
int  back_trylive(httrackp* opt,cache_back* cache,lien_back* back, int back_max, int p);
int  back_finalize(httrackp* opt,cache_back* cache,lien_back* back,int p);
void back_info(lien_back* back,int i,int j,FILE* fp);
void back_infostr(lien_back* back,int i,int j,char* s);
LLint  back_transfered(LLint add,lien_back* back,int back_max);
// hostback
void back_solve(lien_back* back);
int host_wait(lien_back* back);
int back_checksize(httrackp* opt,lien_back* eback,int check_only_totalsize);
int back_checkmirror(httrackp* opt);

PTHREAD_TYPE PTHREAD_TYPE_FNC Hostlookup(void* iadr_p);



Generated by  Doxygen 1.6.0   Back to index