home *** CD-ROM | disk | FTP | other *** search
/ PC Open 48 / pcopen48.iso / Internet / HtTrack / DATA1.CAB / Sources / src / htsopt.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-21  |  5.6 KB  |  141 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche, Yann Philippot
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. This project has been developed by Xavier Roche and Yann Philippot,
  29. from the company Serianet at Caen, France (http://www.serianet.com)
  30.  
  31. Please visit our Website: http://www.httrack.com
  32. */
  33.  
  34.  
  35. /* ------------------------------------------------------------ */
  36. /* File: HTTrack parameters block                               */
  37. /*       Called by httrack.h and some other files               */
  38. /* Author: Xavier Roche                                         */
  39. /* ------------------------------------------------------------ */
  40.  
  41.  
  42. #ifndef HTTRACK_DEFOPT
  43. #define HTTRACK_DEFOPT
  44.  
  45. #include <stdio.h>
  46. #include "htsbasenet.h"
  47. #include "htsbauth.h"
  48.  
  49. // structure proxy
  50. typedef struct {
  51.   int active;
  52.   char name[1024];
  53.   int port;
  54. } t_proxy; 
  55.  
  56. /* Structure utile pour copier en bloc les paramΦtres */
  57. typedef struct {
  58.   char**  filters;
  59.   int*    filptr;
  60.   int*    filter_max;
  61. } htsfilters;
  62.  
  63.  
  64.  
  65. // paramΦtres httrack (options)
  66. typedef struct {
  67.   int wizard;       // wizard aucun/grand/petit
  68.   int flush;        // fflush sur les fichiers log
  69.   int travel;       // type de dΘplacements (same domain etc)
  70.   int seeker;       // up & down
  71.   int urlmode;      // liens relatifs etc   
  72.   int debug;        // mode dΘbug log
  73.   int getmode;      // sauver html, images..
  74.   FILE* log;        // fichier log
  75.   FILE* errlog;     // et erreur
  76.   int maxsite;      // taille max site
  77.   int maxfile_nonhtml;  // taille max non html
  78.   int maxfile_html;     // taille max html
  79.   int maxsoc;           // nbre sockets
  80.   int fragment;         // fragmentation d'un site
  81.   int nearlink;         // prendre les images/data proche d'une page mais α l'extΘrieur
  82.   int makeindex;        // faire un index
  83.   int delete_old;       // effacer anciens fichiers
  84.   int timeout;          // nombre de secondes de timeout
  85.   int rateout;          // nombre d'octets minium pour le transfert
  86.   int maxtime;          // temps max en secondes
  87.   int maxrate;          // taux de transfert max
  88.   int maxconn;          // nombre max de connexions/s
  89.   int waittime;         // dΘmarrage programmΘ
  90.   int cache;            // gΘnΘration d'un cache
  91.   int aff_progress;     // barre de progression
  92.   int shell;            // gestion d'un shell par pipe stdin/stdout
  93.   t_proxy proxy;        // configuration du proxy
  94.   int savename_83;      // conversion 8-3 pour les noms de fichiers
  95.   int savename_type;    // type de noms: structure originale/html-images en un seul niveau
  96.   char savename_userdef[256];  // structure userdef (ex: %h%p/%n%q.%t)
  97.   int user_agent_send;  // user agent (ex: httrack/1.0 [sun])
  98.   char user_agent[128];
  99.   char path_log[1024];  // chemin pour cache et log
  100.   char path_html[1024]; // chemin pour miroir
  101.   int retry;            // nombre d'essais supplΘmentaires en cas d'Θchec
  102.   int makestat;         // mettre α jour un fichier log de statistiques de transfert
  103.   int maketrack;        // mettre α jour un fichier log de statistiques d'opΘrations
  104.   int parsejava;        // parsing des classes java pour rΘcupΘrer les class, gif & cie
  105.   int hostcontrol;      // abandon d'un host trop lent etc.
  106.   int errpage;          // gΘnΘrer une page d'erreur en cas de 404 etc.
  107.   int check_type;       // si type inconnu (cgi,asp,/) alors tester lien (et gΘrer moved Θventuellement)
  108.   int all_in_cache;     // tout mettre en cache!
  109.   int robots;           // traitement des robots
  110.   int external;         // pages externes->pages d'erreur
  111.   int mirror_first_page; // miroir des liens
  112.   char sys_com[2048];   // commande systΦme
  113.   int sys_com_exec;     // executer commande 
  114.   int accept_cookie;    // gestion des cookies
  115.   t_cookie* cookie;
  116.   int http10;           // forcer http 1.0
  117.   int tolerant;         // accepter content-length incorrect
  118.   int parseall;         // essayer de tout parser (tags inconnus contenant des liens, par exemple)
  119.   int norecatch;        // ne pas reprendre les fichiers effacΘs localement par l'utilisateur
  120.   int verbosedisplay;   // animation textuelle
  121.   char footer[256];     // ligne d'infos
  122.   int maxcache;         // maximum en mΘmoire au niveau du cache (backing)
  123.   int maxcache_anticipate; // maximum de liens α anticiper (majorant)
  124.   int ftp_proxy;        // proxy http pour ftp
  125.   char filelist[1024];  // fichier liste URL α inclure
  126.   htsfilters filters;   // contient les pointeurs pour les filtres
  127.   //
  128.   int maxlink;          // nombre max de liens
  129.   int maxfilter;        // nombre max de filtres
  130.   //
  131.   char* exec;           // adresse du nom de l'Θxecutable
  132.   //
  133.   int quiet;            // poser des questions autres que wizard?
  134.   int keyboard;         // vΘrifier stdin
  135.   //
  136.   int is_update;        // c'est une update (afficher "File updated...")
  137. } httrackp;
  138.  
  139. #endif
  140.  
  141.