www.pudn.com > openwebspiderv0.1a.zip > options.h



/* OpenWebSpider
 *
 *     Coded by Shen139
 *     shen139 [at] eviltime (dot) com
 *
 *
 * This file is part of OpenWebSpider
 *
 * 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
 * (at your option) 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
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * 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
 *
 */

#ifndef __OPTIONS
#define __OPTIONS

#define MAXHOSTSIZE			50
#define MAXPAGESIZE			512
#define MAXURLSIZE			MAXHOSTSIZE + MAXPAGESIZE + 8
#define	MAXPACKETSIZE		MAXURLSIZE + 100000
#define MAXTITLESIZE		250
#define MAXTAGSIZE			20
#define MAXWORDSIZE			30
#define MAXQUERYSIZE		500
#define MAXARGQUERYSIZE		200
#define MAXKEYSIZE			20
#define MAXDESCRIPTIONSIZE	250
#define TIMEOUTs			5		/*Seconds*/
#define MAXRETRY			20

#ifdef CGI
#define MAXINPUTSIZE			100
#endif


#define MIN(a,b)			(a Real time search
 * scan_mode==1 => Indicize
 * scan_mode==2 => Indicized search 
 * scan_mode==0xFF => uninitialized 

 */

struct sHost* strtHst;

char *BinaryExtensions[]=		{"exe",	"zip",
								"bz2",	"gz",
								"bz",	"tar"
								"tgz",	"rpm",
								"jpg",	"jpeg",
								"bmp",	"gif",
								"mp3",	"avi",
								"mov",	"wav",
								"iso",	"\0"};

char *PlainTextExtensions[]=	{"txt",	"c",
				"h",	"cpp",
				"pl",	"\0"};

char *HtmlExtensions[]=			{"htm",	"html",
								"php",	"asp",
								"cgi",	"\0"};

#endif


/*EOF*/