home *** CD-ROM | disk | FTP | other *** search
/ PC Open 48 / pcopen48.iso / Internet / HtTrack / DATA1.CAB / Sources / src / htsconfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-21  |  3.8 KB  |  126 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: Global engine definition file                          */
  37. /* Author: Xavier Roche                                         */
  38. /* ------------------------------------------------------------ */
  39.  
  40. // Ensemble des paramΦtres du robot
  41.  
  42. #ifndef HTTRACK_GLOBAL_ENGINE_DEFH
  43. #define HTTRACK_GLOBAL_ENGINE_DEFH
  44.  
  45. // ------------------------------------------------------------
  46. // DΘfinitions du ROBOT
  47.  
  48. // accΦs des miroirs pour les autres utilisateurs (0/1)
  49. #define HTS_ACCESS 1
  50.  
  51. // temps de poll d'une socket: 1/10s
  52. #define HTS_SOCK_SEC 0
  53. #define HTS_SOCK_MS 100000
  54.  
  55. // nom par dΘfaut
  56. #define DEFAULT_HTML "index.html"
  57.  
  58. // nom par dΘfaut pour / en ftp
  59. #define DEFAULT_FTP "index.txt"
  60.  
  61. // extension par dΘfaut pour fichiers n'en ayant pas
  62. #define DEFAULT_EXT       ".html"
  63. #define DEFAULT_EXT_SHORT ".htm"
  64. //#define DEFAULT_EXT       ".txt"
  65. //#define DEFAULT_EXT_SHORT ".txt"
  66.  
  67. // Θviter les /nul, /con..
  68. #define HTS_OVERRIDE_DOS_FOLDERS 1
  69.  
  70. // poll stdin autorisΘ? (0/1)
  71. #define HTS_POLL 1
  72.  
  73. // vΘrifier les liens sans extension (0/1) [α Θviter, trΦs lent]
  74. #define HTS_CHECK_STRANGEDIR 0
  75.  
  76. // le slash est un html par dΘfaut (exemple/ est toujours un html)
  77. #define HTS_SLASH_ISHTML 1
  78.  
  79. // supprimer index si un rΘpertoire identique existe
  80. #define HTS_REMOVE_ANNOYING_INDEX 1
  81.  
  82. // Θcriture directe dur disque possible (0/1)
  83. #define HTS_DIRECTDISK 1
  84.  
  85. // gΘrer une table de hachage?
  86. #define HTS_HASH 1
  87.  
  88. // fast cache (build hash table)
  89. #define HTS_FAST_CACHE 1
  90.  
  91. // le > peut Ωtre considΘrΘ comme un tag de fermeture de commentaire (<!-- > est valide)
  92. #define GT_ENDS_COMMENT 1
  93.  
  94. // case-sensitive pour les dossiers et fichiers (0/1)
  95. // [normalement 1, mais pose des problΦmes (url malformΘe par exemple) et n'est pas trΦs utile..
  96. // ..et pas bcp respectΘ]
  97. #define HTS_CASSE 0
  98.  
  99. // Un fichier ayant une taille diffΘrente du content-length doit il Ωtre annulΘ?
  100. // SEE opt.tolerant and opt.http10
  101. // #define HTS_CL_IS_FATAL 0
  102.  
  103. // une erreur supprime le fichier sur disque
  104. // (non fixΘ pour cause de retry)
  105. #define HTS_REMOVE_BAD_FILES 0
  106.  
  107. // en cas de Range: xx- donnant un Content-length: xx
  108. // alors skipper le fichier, considΘrΘ comme transmis
  109. #define HTS_SKIP_FULL_RANGE 1
  110.  
  111. // nombre max de filtres que l'utilisateur peut fixer
  112. #define usd_max 10000
  113.  
  114. // connect non bloquant? (poll sur write)
  115. #define HTS_XCONN 1
  116.  
  117. // gethostbyname non bloquant? (gestion multithread)
  118. #define HTS_XGETHOST 1
  119.  
  120. // α partir de combien de secondes doit-on Θtudier le taux de transfert?
  121. #define HTS_WATCHRATE 15
  122. // ------------------------------------------------------------
  123. //
  124.  
  125. #endif
  126.