亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gopherenum-depth.c

?? harvest是一個下載html網頁得機器人
?? C
?? 第 1 頁 / 共 2 頁
字號:
static char rcsid[] = "$Id: gopherenum-depth.c,v 2.5 2000/02/03 12:45:56 sxw Exp $";/* *  gopherenum-depth.c - Depth First RootNode URL enumerator for Gopher URLs * *  Usage: gopherenum-depth gopher-URL * *  Outputs the following format: * *      URL of tree root *      URL <tab> md5 *      ... *      URL <tab> md5 * *  DEBUG: section  43, level 1, 5, 9   Gatherer enumeration for Gopher *  AUTHOR: Harvest derived * *  Harvest Indexer http://harvest.sourceforge.net/ *  ----------------------------------------------- * *  The Harvest Indexer is a continued development of code developed by *  the Harvest Project. Development is carried out by numerous individuals *  in the Internet community, and is not officially connected with the *  original Harvest Project or its funding sources. * *  Please mail lee@arco.de if you are interested in participating *  in the development effort. * *  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., 675 Mass Ave, Cambridge, MA 02139, USA. *//*  ---------------------------------------------------------------------- *  Copyright (c) 1994, 1995.  All rights reserved. * *    The Harvest software was developed by the Internet Research Task *    Force Research Group on Resource Discovery (IRTF-RD): * *          Mic Bowman of Transarc Corporation. *          Peter Danzig of the University of Southern California. *          Darren R. Hardy of the University of Colorado at Boulder. *          Udi Manber of the University of Arizona. *          Michael F. Schwartz of the University of Colorado at Boulder. *          Duane Wessels of the University of Colorado at Boulder. * *    This copyright notice applies to software in the Harvest *    ``src/'' directory only.  Users should consult the individual *    copyright notices in the ``components/'' subdirectories for *    copyright information about other software bundled with the *    Harvest source code distribution. * *  TERMS OF USE * *    The Harvest software may be used and re-distributed without *    charge, provided that the software origin and research team are *    cited in any use of the system.  Most commonly this is *    accomplished by including a link to the Harvest Home Page *    (http://harvest.cs.colorado.edu/) from the query page of any *    Broker you deploy, as well as in the query result pages.  These *    links are generated automatically by the standard Broker *    software distribution. * *    The Harvest software is provided ``as is'', without express or *    implied warranty, and with no support nor obligation to assist *    in its use, correction, modification or enhancement.  We assume *    no liability with respect to the infringement of copyrights, *    trade secrets, or any patents, and are not responsible for *    consequential damages.  Proper use of the Harvest software is *    entirely the responsibility of the user. * *  DERIVATIVE WORKS * *    Users may make derivative works from the Harvest software, subject *    to the following constraints: * *      - You must include the above copyright notice and these *        accompanying paragraphs in all forms of derivative works, *        and any documentation and other materials related to such *        distribution and use acknowledge that the software was *        developed at the above institutions. * *      - You must notify IRTF-RD regarding your distribution of *        the derivative work. * *      - You must clearly notify users that your are distributing *        a modified version and not the original Harvest software. * *      - Any derivative product is also subject to these copyright *        and use restrictions. * *    Note that the Harvest software is NOT in the public domain.  We *    retain copyright, as specified above. * *  HISTORY OF FREE SOFTWARE STATUS * *    Originally we required sites to license the software in cases *    where they were going to build commercial products/services *    around Harvest.  In June 1995 we changed this policy.  We now *    allow people to use the core Harvest software (the code found in *    the Harvest ``src/'' directory) for free.  We made this change *    in the interest of encouraging the widest possible deployment of *    the technology.  The Harvest software is really a reference *    implementation of a set of protocols and formats, some of which *    we intend to standardize.  We encourage commercial *    re-implementations of code complying to this set of standards. * */#include <stdio.h>#include <string.h>#include <signal.h>#include <stdlib.h>#include <gdbm.h>#include "util.h"#include "url.h"#define PUBLIC extern#include "filter.h"/* From robots-txt.c */extern int RobotsTxtCheck _PARAMS((URL *));typedef struct _list_t {    void *ptr;    struct _list_t *next;} list_t;/* Global variables */int max_depth = 0;int start_depth = 0;/* Local variables */static int url_max = 0;static int nurls = 0;static int host_max = 0;static int nhosts = 0;static char *tree_root = NULL;static char *urldb_filename = NULL;static char *hostdb_filename = NULL;static char *md5db_filename = NULL;static GDBM_FILE urldbf = NULL;static GDBM_FILE hostdbf = NULL;static GDBM_FILE md5dbf = NULL;/* Local functions */static void process_url();static void usage();static void mark_failed();static void mark_retrieved();static void sigdie();static int url_in_db();static int md5_in_db();/* ---------------------------------------------------------------------- *//* *  mark_failed() - Mark that a URL failed to be retrieved, so that the *  enumerator doesn't try it again. This option may not be wanted by *  some users and so should be configurable. */static void mark_failed(URL *up) {    datum k,d;    Debug(43, 9, ("mark_failed: url='%s'",up->url));    k.dptr = xstrdup(up->url);    k.dsize = strlen(k.dptr) + 1;    d.dptr = xstrdup("FailedAccess");    d.dsize = strlen(d.dptr) + 1;    if (!gdbm_exists(urldbf, k) && gdbm_store(urldbf, k, d, GDBM_INSERT))        fatal("GDBM URLDB: %s: %s", k.dptr, gdbm_strerror(gdbm_errno));    xfree(k.dptr);    xfree(d.dptr);}/* *  mark_retrieved() - Mark that the given URL was successfully retrieved, *  so that the URL is not retrieved again.  This prevents cycles in the *  enumeration. */static void mark_retrieved(up)     URL *up;{    datum k, d;    k.dptr = xstrdup(up->url);    k.dsize = strlen(k.dptr) + 1;    d.dptr = xstrdup(up->md5);    d.dsize = strlen(d.dptr) + 1;    if (!gdbm_exists(urldbf, k) && gdbm_store(urldbf, k, d, GDBM_INSERT))	fatal("GDBM URLDB: %s: %s", k.dptr, gdbm_strerror(gdbm_errno));    if (!gdbm_exists(md5dbf, d) && gdbm_store(md5dbf, d, k, GDBM_INSERT))	fatal("GDBM MD5DB: %s: %s", k.dptr, gdbm_strerror(gdbm_errno));    /* Print URL to stdout to enumerate; flush to keep pipe moving */    fprintf(stdout, "%s\t%s\n", up->url, up->md5);	/* URL <tab> MD5 */    fflush(stdout);    if (nurls++ >= url_max) {	Log("Truncating RootNode %s at %d LeafNode URLs\n",	    tree_root, url_max);	sigdie();    }    xfree(k.dptr);		/* Clean up */    xfree(d.dptr);}/* *  url_in_db() - check to see if the URL is in the database */static int url_in_db(url)     char *url;{    datum k;    int r;    k.dptr = xstrdup(url);    k.dsize = strlen(k.dptr) + 1;    r = gdbm_exists(urldbf, k);    xfree(k.dptr);    return (r);}/* *  md5_in_db() - check to see if the MD5 is in the database */static int md5_in_db(md5)     char *md5;{    datum k;    int r;    k.dptr = xstrdup(md5);    k.dsize = strlen(k.dptr) + 1;    r = gdbm_exists(md5dbf, k);    xfree(k.dptr);    return (r);}/* *  host_in_db() - check to see if the host is in the database */static int host_in_db(host)     char *host;{    datum k;    int r;    Host *h;    h = get_host(host);    if (h == (Host *) NULL)	return 0;    k.dptr = xstrdup(h->dotaddr);    k.dsize = strlen(k.dptr) + 1;    r = gdbm_exists(hostdbf, k);    xfree(k.dptr);    return (r);}/* *  visit_server() - Determine if we should visit the server.  Return *  zero if we should not process the URL; otherwise, return non-zero. */static int visit_server(up)     URL *up;{    datum k, d;    Host *h;    if (host_in_db(up->host))	/* Host is already in the db */	return (1);    if (++nhosts > host_max)	return (0);    h = get_host(up->host);    if (h == (Host *) NULL)	return (0);    k.dptr = xstrdup(h->dotaddr);    k.dsize = strlen(k.dptr) + 1;    d.dptr = xstrdup(up->url);    d.dsize = strlen(d.dptr) + 1;    if (gdbm_store(hostdbf, k, d, GDBM_INSERT))	fatal("GDBM HOSTDB: %s: %s", k.dptr, gdbm_strerror(gdbm_errno));    xfree(k.dptr);    xfree(d.dptr);    return (1);}/* *  gopher_enum() - Returns all of the URLs.  The buffer that is returned *  has the URLs separated by \n's.  Returns NULL on error. */static list_t *gopher_enum(up)     URL *up;{    char buf[BUFSIZ];    char newurl[BUFSIZ];    list_t *head = NULL;    list_t **Tail = NULL;    list_t *l = NULL;    FILE *fp = NULL;    char *p = NULL;    char *q = NULL;    char *urlbuf = NULL;    char *gopher_name = NULL;    char *gopher_path = NULL;    char *gopher_host = NULL;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线视频官网| 国产精品成人免费在线| 99在线精品免费| 久草在线在线精品观看| 日韩国产精品久久| 亚洲高清视频中文字幕| 青青草国产成人av片免费| 日韩电影在线免费| 美女国产一区二区三区| 蜜桃视频一区二区| 国内精品伊人久久久久av一坑 | 欧美日韩亚州综合| 亚洲国产毛片aaaaa无费看| 亚洲视频一区在线观看| 一区二区高清免费观看影视大全 | 亚洲精品在线一区二区| 国产乱一区二区| 亚洲欧美日韩久久| 7777精品伊人久久久大香线蕉 | 国产福利91精品一区| 国产午夜精品久久久久久免费视 | 日韩二区三区四区| 日本女优在线视频一区二区| 亚洲成人1区2区| 日韩欧美国产三级电影视频| 成人综合婷婷国产精品久久| 亚洲激情自拍视频| 久久久影视传媒| 91福利小视频| 国产精品99久久久久久似苏梦涵| 亚洲黄色录像片| 久久久久久久久久看片| 在线免费亚洲电影| 国产在线不卡视频| 午夜久久电影网| 国产精品欧美综合在线| 欧美久久久久久久久中文字幕| 国产精品羞羞答答xxdd| 日韩在线观看一区二区| 国产精品久久久久天堂| 精品成人一区二区三区四区| 色久优优欧美色久优优| 国产一区二区三区国产| 日本不卡一区二区三区| 亚洲日本韩国一区| 国产欧美日韩精品a在线观看| 91精品一区二区三区在线观看| 成人av电影在线观看| 麻豆精品一区二区av白丝在线| 亚洲私人黄色宅男| 欧美国产97人人爽人人喊| 欧美不卡激情三级在线观看| 欧洲另类一二三四区| 成人av午夜影院| 国产精品18久久久久久久久久久久| 午夜欧美电影在线观看| 亚洲一区在线观看免费| 国内一区二区视频| 国产精品色在线观看| 欧美日韩国产影片| 亚洲综合色区另类av| 色婷婷av一区二区三区之一色屋| 亚洲欧美综合色| 色综合一区二区| 青青草97国产精品免费观看无弹窗版 | 成人精品国产免费网站| 一区二区三区美女| 7777精品伊人久久久大香线蕉的| 波多野结衣精品在线| 国产成人aaa| 丁香另类激情小说| 高清日韩电视剧大全免费| 国产剧情一区二区三区| 久久精工是国产品牌吗| 蜜臀av在线播放一区二区三区| 亚洲一区二区视频| 一区二区三区四区国产精品| 亚洲视频在线一区观看| 亚洲欧美在线高清| 亚洲欧美日韩国产一区二区三区 | 欧美丰满美乳xxx高潮www| 欧美色欧美亚洲另类二区| 欧美亚洲愉拍一区二区| 欧美自拍偷拍一区| 欧美性生交片4| 911国产精品| 日韩欧美国产wwwww| 日韩欧美一二区| 久久精品亚洲一区二区三区浴池 | 国产精品二区一区二区aⅴ污介绍| 国产日韩欧美高清在线| 自拍视频在线观看一区二区| 伊人色综合久久天天人手人婷| 亚洲高清免费观看| 美女任你摸久久| 国产麻豆91精品| 99久久婷婷国产| 欧美午夜精品一区| 欧美mv和日韩mv的网站| 中文字幕精品一区| 亚洲精品国产无天堂网2021| 午夜伦欧美伦电影理论片| 激情综合亚洲精品| thepron国产精品| 精品视频一区 二区 三区| 日韩一级二级三级精品视频| www国产精品av| 亚洲少妇最新在线视频| 亚洲妇熟xx妇色黄| 国产伦理精品不卡| 欧美亚洲自拍偷拍| 久久久久久亚洲综合| 99免费精品视频| 欧美日韩国产色站一区二区三区| 欧美日韩亚洲不卡| 日韩亚洲欧美高清| 亚洲成人黄色影院| 男女男精品网站| 国产成人免费9x9x人网站视频| 在线播放中文字幕一区| 在线成人小视频| 精品av久久707| 国产91在线观看丝袜| 国产亚洲综合色| 亚洲影视资源网| 国产成人av影院| 91精品欧美一区二区三区综合在| 欧美高清在线精品一区| 日韩高清一级片| 99国产精品久久久久久久久久久 | 成人性生交大片免费看视频在线| 色就色 综合激情| 国产亚洲一本大道中文在线| 亚洲123区在线观看| av午夜一区麻豆| 久久九九久久九九| 免费高清不卡av| 91国偷自产一区二区使用方法| 久久久亚洲高清| 蓝色福利精品导航| 欧美日韩日日骚| 亚洲欧美日韩在线不卡| 国产高清在线精品| 精品国产免费人成电影在线观看四季| 亚洲自拍偷拍av| 99re亚洲国产精品| 国产日韩欧美精品综合| 精品中文av资源站在线观看| 欧美电影在线免费观看| 亚洲精品你懂的| 91蝌蚪porny成人天涯| 国产精品福利av| 成人免费高清在线| 国产亚洲成av人在线观看导航| 免费看欧美女人艹b| 欧美区在线观看| 亚洲第一av色| 欧美性猛交xxxx黑人交| 一区二区三区久久| 91色九色蝌蚪| 亚洲色图.com| 91美女福利视频| 日韩一区在线看| 91浏览器打开| 亚洲一二三四区| 欧美亚洲一区二区在线观看| 亚洲一区在线电影| 欧美丝袜丝nylons| 五月天精品一区二区三区| 3d动漫精品啪啪1区2区免费| 一二三四区精品视频| 欧美性猛交xxxx黑人交| 亚洲午夜激情av| 欧美一区二区网站| 日本不卡的三区四区五区| 欧美本精品男人aⅴ天堂| 久久精品国产在热久久| 国产视频在线观看一区二区三区| 国产精品亚洲一区二区三区妖精| 久久九九久久九九| 99精品久久只有精品| 亚洲精品免费看| 91精品国产综合久久国产大片 | 麻豆精品在线观看| 久久久精品天堂| 99精品国产99久久久久久白柏| 亚洲精品中文在线影院| 欧美日韩国产a| 激情五月激情综合网| 国产精品入口麻豆原神| 色综合欧美在线| 麻豆成人综合网| 国产午夜亚洲精品不卡| 一本色道久久综合亚洲aⅴ蜜桃| 一区二区成人在线| 日韩精品一区在线| 99久久综合精品| 日本中文在线一区| 国产精品久久三| 91精品在线免费|