home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 71 / CDROM71.ISO / internet / navoff / data1.cab / Sources / src / htsopt.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-01  |  6.0 KB  |  147 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche, Yann Philippot and other contributors
  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. and other contributors (see the greetings file)
  31.  
  32. Please visit our Website: http://www.httrack.com
  33. */
  34.  
  35.  
  36. /* ------------------------------------------------------------ */
  37. /* File: HTTrack parameters block                               */
  38. /*       Called by httrack.h and some other files               */
  39. /* Author: Xavier Roche                                         */
  40. /* ------------------------------------------------------------ */
  41.  
  42.  
  43. #ifndef HTTRACK_DEFOPT
  44. #define HTTRACK_DEFOPT
  45.  
  46. #include <stdio.h>
  47. #include "htsbasenet.h"
  48. #include "htsbauth.h"
  49.  
  50. // structure proxy
  51. typedef struct {
  52.   int active;
  53.   char name[1024];
  54.   int port;
  55. } t_proxy; 
  56.  
  57. /* Structure utile pour copier en bloc les paramΦtres */
  58. typedef struct {
  59.   char**  filters;
  60.   int*    filptr;
  61.   int*    filter_max;
  62. } htsfilters;
  63.  
  64.  
  65.  
  66. // paramΦtres httrack (options)
  67. typedef struct {
  68.   int wizard;       // wizard aucun/grand/petit
  69.   int flush;        // fflush sur les fichiers log
  70.   int travel;       // type de dΘplacements (same domain etc)
  71.   int seeker;       // up & down
  72.   int depth;        // nombre de niveaux de rΘcursion
  73.   int extdepth;     // nombre de niveaux de rΘcursion α l'ΘxtΘrieur
  74.   int urlmode;      // liens relatifs etc   
  75.   int debug;        // mode dΘbug log
  76.   int getmode;      // sauver html, images..
  77.   FILE* log;        // fichier log
  78.   FILE* errlog;     // et erreur
  79.   int maxsite;      // taille max site
  80.   int maxfile_nonhtml;  // taille max non html
  81.   int maxfile_html;     // taille max html
  82.   int maxsoc;           // nbre sockets
  83.   int fragment;         // fragmentation d'un site
  84.   int nearlink;         // prendre les images/data proche d'une page mais α l'extΘrieur
  85.   int makeindex;        // faire un index
  86.   int kindex;           // et un index 'keyword'
  87.   int delete_old;       // effacer anciens fichiers
  88.   int timeout;          // nombre de secondes de timeout
  89.   int rateout;          // nombre d'octets minium pour le transfert
  90.   int maxtime;          // temps max en secondes
  91.   int maxrate;          // taux de transfert max
  92.   int maxconn;          // nombre max de connexions/s
  93.   int waittime;         // dΘmarrage programmΘ
  94.   int cache;            // gΘnΘration d'un cache
  95.   int aff_progress;     // barre de progression
  96.   int shell;            // gestion d'un shell par pipe stdin/stdout
  97.   t_proxy proxy;        // configuration du proxy
  98.   int savename_83;      // conversion 8-3 pour les noms de fichiers
  99.   int savename_type;    // type de noms: structure originale/html-images en un seul niveau
  100.   char savename_userdef[256];  // structure userdef (ex: %h%p/%n%q.%t)
  101.   int user_agent_send;  // user agent (ex: httrack/1.0 [sun])
  102.   char user_agent[128];
  103.   char path_log[1024];  // chemin pour cache et log
  104.   char path_html[1024]; // chemin pour miroir
  105.   int retry;            // nombre d'essais supplΘmentaires en cas d'Θchec
  106.   int makestat;         // mettre α jour un fichier log de statistiques de transfert
  107.   int maketrack;        // mettre α jour un fichier log de statistiques d'opΘrations
  108.   int parsejava;        // parsing des classes java pour rΘcupΘrer les class, gif & cie
  109.   int hostcontrol;      // abandon d'un host trop lent etc.
  110.   int errpage;          // gΘnΘrer une page d'erreur en cas de 404 etc.
  111.   int check_type;       // si type inconnu (cgi,asp,/) alors tester lien (et gΘrer moved Θventuellement)
  112.   int all_in_cache;     // tout mettre en cache!
  113.   int robots;           // traitement des robots
  114.   int external;         // pages externes->pages d'erreur
  115.   int mirror_first_page; // miroir des liens
  116.   char sys_com[2048];   // commande systΦme
  117.   int sys_com_exec;     // executer commande 
  118.   int accept_cookie;    // gestion des cookies
  119.   t_cookie* cookie;
  120.   int http10;           // forcer http 1.0
  121.   int sizehack;         // forcer rΘponse "mis α jour" si taille identique
  122.   int tolerant;         // accepter content-length incorrect
  123.   int parseall;         // essayer de tout parser (tags inconnus contenant des liens, par exemple)
  124.   int norecatch;        // ne pas reprendre les fichiers effacΘs localement par l'utilisateur
  125.   int verbosedisplay;   // animation textuelle
  126.   char footer[256];     // ligne d'infos
  127.   int maxcache;         // maximum en mΘmoire au niveau du cache (backing)
  128.   //int maxcache_anticipate; // maximum de liens α anticiper (majorant)
  129.   int ftp_proxy;        // proxy http pour ftp
  130.   char filelist[1024];  // fichier liste URL α inclure
  131.   htsfilters filters;   // contient les pointeurs pour les filtres
  132.   char lang_iso[64];    // en, fr ..
  133.   //
  134.   int maxlink;          // nombre max de liens
  135.   int maxfilter;        // nombre max de filtres
  136.   //
  137.   char* exec;           // adresse du nom de l'Θxecutable
  138.   //
  139.   int quiet;            // poser des questions autres que wizard?
  140.   int keyboard;         // vΘrifier stdin
  141.   //
  142.   int is_update;        // c'est une update (afficher "File updated...")
  143. } httrackp;
  144.  
  145. #endif
  146.  
  147.