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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? htreqman.c

?? firtext搜索引擎源碼
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
    }    return NO;}PUBLIC HTList * HTRequest_before (HTRequest * me, BOOL *override){    if (me) {	*override = me->befores_local;	return me->befores;    }    return NULL;}PUBLIC BOOL HTRequest_addAfter (HTRequest * me, HTNetAfter * filter,				const char * tmplate, void * param,				int status, HTFilterOrder order,				BOOL override){    if (me) {	me->afters_local = override;	if (filter) {	    if (!me->afters) me->afters = HTList_new();	    return HTNetCall_addAfter(me->afters, filter,				      tmplate, param, status, order);	}	return YES;			/* It's OK to register a NULL filter */    }    return NO;}PUBLIC BOOL HTRequest_deleteAfter (HTRequest * me, HTNetAfter * filter){    return (me && me->afters) ?	HTNetCall_deleteAfter(me->afters, filter) : NO;}PUBLIC BOOL HTRequest_deleteAfterStatus (HTRequest * me, int status){    return (me && me->afters) ?	HTNetCall_deleteAfterStatus(me->afters, status) : NO;}PUBLIC BOOL HTRequest_deleteAfterAll (HTRequest * me){    if (me && me->afters) {	HTNetCall_deleteAfterAll(me->afters);	me->afters = NULL;	me->afters_local = NO;	return YES;    }    return NO;}PUBLIC HTList * HTRequest_after (HTRequest * me, BOOL *override){    if (me) {	*override = me->afters_local;	return me->afters;    }    return NULL;}/***	Call back function for context swapping*/PUBLIC void HTRequest_setCallback (HTRequest * me, HTRequestCallback *cbf){    if (me) me->callback = cbf;}PUBLIC HTRequestCallback *HTRequest_callback (HTRequest * me){    return me ? me->callback : NULL;}/***	Context pointer to be used in context call back function*/PUBLIC void HTRequest_setContext (HTRequest * me, void *context){    if (me) me->context = context;}PUBLIC void *HTRequest_context (HTRequest * me){    return me ? me->context : NULL;}/***	Has output stream been connected to the channel? If not then we**	must free it explicitly when deleting the request object*/PUBLIC void HTRequest_setOutputConnected (HTRequest * me, BOOL mode){    if (me) me->connected = mode;}PUBLIC BOOL HTRequest_outputConnected (HTRequest * me){    return me ? me->connected : NO;}/***	Bytes read in this request*/PUBLIC long HTRequest_bodyRead(HTRequest * me){    return me ? HTNet_bytesRead(me->net) - HTNet_headerBytesRead(me->net) : -1;}/***	Bytes written in this request*/PUBLIC long HTRequest_bodyWritten(HTRequest * me){    return me ? HTNet_bytesWritten(me->net) - HTNet_headerBytesWritten(me->net) : -1;}/***	Total Bytes read in this request*/PUBLIC long HTRequest_bytesRead (HTRequest * me){    return me ? HTNet_bytesRead(me->net) : -1;}/***	Bytes written in this request*/PUBLIC long HTRequest_bytesWritten (HTRequest * me){    return me ? HTNet_bytesWritten(me->net) : -1;}/***	Handle the max forward header value*/PUBLIC BOOL HTRequest_setMaxForwards (HTRequest * me, int maxforwards){    if (me && maxforwards >= 0) {	me->max_forwards = maxforwards;	HTRequest_addRqHd(me, HT_C_MAX_FORWARDS);	       /* Turn it on */	return YES;    }    return NO;}PUBLIC int HTRequest_maxForwards (HTRequest * me){    return me ? me->max_forwards : -1;}/***  Source request*/PUBLIC BOOL HTRequest_setSource (HTRequest * me, HTRequest * source){    if (me) {	me->source = source;	return YES;    }    return NO;}PUBLIC HTRequest * HTRequest_source (HTRequest * me){    return (me ? me->source : NULL);}PUBLIC BOOL HTRequest_isPostWeb (HTRequest * me){    return (me ? me->source != NULL: NO);}/***	POST Call back function for sending data to the destination*/PUBLIC void HTRequest_setPostCallback (HTRequest * me, HTPostCallback *cbf){    if (me) me->PostCallback = cbf;}PUBLIC HTPostCallback * HTRequest_postCallback (HTRequest * me){    return me ? me->PostCallback : NULL;}/***	Entity Anchor*/PUBLIC BOOL HTRequest_setEntityAnchor (HTRequest * me,				       HTParentAnchor * anchor){    if (me) {	me->source_anchor = anchor;	return YES;    }    return NO;}PUBLIC HTParentAnchor * HTRequest_entityAnchor (HTRequest * me){    return me ? me->source_anchor ? me->source_anchor :	me->anchor : NULL;}/* ------------------------------------------------------------------------- *//*				POST WEB METHODS	      	 	     *//* ------------------------------------------------------------------------- *//***  Add a destination request to this source request structure so that we**  build the internal request representation of the POST web**  Returns YES if OK, else NO*/PUBLIC BOOL HTRequest_addDestination (HTRequest * src, HTRequest * dest){    if (src && dest) {	dest->source = src->source = src;	if (!src->mainDestination) {	    src->mainDestination = dest;	    src->destRequests = 1;	    HTTRACE(CORE_TRACE, "POSTWeb..... Adding dest %p to src %p\n" _ 			 dest _ src);	    return YES;	} else {	    if (!src->destinations) src->destinations = HTList_new();	    if (HTList_addObject(src->destinations, (void *) dest)==YES) {		src->destRequests++;		HTTRACE(CORE_TRACE, "POSTWeb..... Adding dest %p to src %p\n" _ 			     dest _ src);		return YES;	    }	}    }    return NO;}/***  Remove a destination request from this source request structure**  Remember only to delete the internal request objects as the other**  comes from the application!**  Returns YES if OK, else NO*/PUBLIC BOOL HTRequest_removeDestination (HTRequest * dest){    BOOL found=NO;    if (dest && dest->source) {	HTRequest *src = dest->source;	if (src->mainDestination == dest) {	    dest->source = NULL;	    src->mainDestination = NULL;	    src->destRequests--;	    found = YES;	} else if (src->destinations) {	    if (HTList_removeObject(src->destinations, (void *) dest)) {		src->destRequests--;		found = YES;	    }	}	if (found) {	    if (dest->internal) HTRequest_delete(dest);	    HTTRACE(CORE_TRACE, "POSTWeb..... Deleting dest %p from src %p\n" _ 			 dest _ src);	}	if (src->destRequests <= 0) {	    HTTRACE(CORE_TRACE, "POSTWeb..... terminated\n");	    if (src->internal) HTRequest_delete(src);	}    }    return found;}/***  Check to see whether all destinations are ready. If so then enable the**  source as ready for reading.**  Returns YES if all dests are ready, NO otherwise*/PUBLIC BOOL HTRequest_destinationsReady (HTRequest * me){    HTRequest * source = me ? me->source : NULL;    if (source) {	if (source->destStreams == source->destRequests) {	    HTNet * net = source->net;	    HTTRACE(CORE_TRACE, "POSTWeb..... All destinations are ready!\n");	    if (net)			      /* Might already have finished */		HTEvent_register(HTNet_socket(net), HTEvent_READ, &net->event);	    return YES;	}    }    return NO;}/***  Find the source request object and make the link between the **  source output stream and the destination input stream. There can be**  a conversion between the two streams!**  Returns YES if link is made, NO otherwise*/PUBLIC BOOL HTRequest_linkDestination (HTRequest *dest){    if (dest && dest->input_stream && dest->source && dest!=dest->source) {	HTRequest *source = dest->source;	HTStream *pipe = HTStreamStack(source->output_format,				       dest->input_format,				       dest->input_stream,				       dest, YES);	/* Check if we are the only one - else spawn off T streams */	/* @@@ We don't do this yet @@@ */	/* Now set up output stream of the source */	if (source->output_stream)	    (*source->output_stream->isa->_free)(source->output_stream);	source->output_stream = pipe ? pipe : dest->input_stream;	HTTRACE(CORE_TRACE, "POSTWeb..... Linking dest %p to src %p\n" _ 		     dest _ source);	if (++source->destStreams == source->destRequests) {	    HTNet *net = source->net;	    HTTRACE(CORE_TRACE, "POSTWeb..... All destinations ready!\n");	    if (net)			      /* Might already have finished */		HTEvent_register(HTNet_socket(net), HTEvent_READ, &net->event);	    return YES;	}    }    return NO;}/***  Remove a feed stream to a destination request from this source**  request structure. When all feeds are removed the request tree is**  ready to take down and the operation can be terminated.**  Returns YES if removed, else NO*/PUBLIC BOOL HTRequest_unlinkDestination (HTRequest *dest){    BOOL found = NO;    if (dest && dest->source && dest != dest->source) {	HTRequest *src = dest->source;	if (src->mainDestination == dest) {	    src->output_stream = NULL;	    if (dest->input_stream)		(*dest->input_stream->isa->_free)(dest->input_stream);	    found = YES;	} else if (src->destinations) {	    /* LOOK THROUGH THE LIST AND FIND THE RIGHT ONE */	}		if (found) {	    src->destStreams--;	    HTTRACE(CORE_TRACE, "POSTWeb..... Unlinking dest %p from src %p\n" _ 			 dest _ src);	    return YES;	}    }    return NO;}/***  Removes all request structures in this PostWeb.*/PUBLIC BOOL HTRequest_removePostWeb (HTRequest *me){    if (me && me->source) {	HTRequest *source = me->source;	/* Kill main destination */	if (source->mainDestination)	    HTRequest_removeDestination(source->mainDestination);	/* Kill all other destinations */	if (source->destinations) {	    HTList *cur = source->destinations;	    HTRequest *pres;	    while ((pres = (HTRequest *) HTList_nextObject(cur)) != NULL)		HTRequest_removeDestination(pres);	}	/* Remove source request */	HTRequest_removeDestination(source);	return YES;    }    return NO;}/***  Kills all threads in a POST WEB connected to this request but**  NOT this request itself. We also keep the request structures.**  Some requests might be preemptive, for example a SMTP request (when**  that has been implemented). However, this will be handled internally**  in the load function.*/PUBLIC BOOL HTRequest_killPostWeb (HTRequest *me){    if (me && me->source) {	HTRequest *source = me->source;	HTTRACE(CORE_TRACE, "POSTWeb..... Killing\n");	/*	** Kill source. The stream tree is now freed so we have to build	** that again. This is done in HTRequest_linkDestination()	*/	if (me != source) {	    HTNet_kill(source->net);	    source->output_stream = NULL;	}	/* Kill all other destinations */	if (source->destinations) {	    HTList *cur = source->destinations;	    HTRequest *pres;	    while ((pres = (HTRequest *) HTList_nextObject(cur)) != NULL)		if (me != pres) HTNet_kill(pres->net);	}	/* Kill main destination */	if (source->mainDestination && me != source->mainDestination)	    HTNet_kill(source->mainDestination->net);	return YES;    }    return NO;}PUBLIC int HTRequest_forceFlush (HTRequest * request){    HTHost * host = HTNet_host(request->net);    if (host == NULL) return HT_ERROR;    return HTHost_forceFlush(host);}/* --------------------------------------------------------------------------*//*				Document Loader 			     *//* --------------------------------------------------------------------------*//*	Request a resource**	------------------**	This is an internal routine, which has an address AND a matching**	anchor.  (The public routines are called with one OR the other.)**	Returns:**		YES	if request has been registered (success)**		NO	an error occured*/PUBLIC BOOL HTLoad (HTRequest * me, BOOL recursive){    if (!me || !me->anchor) {        HTTRACE(CORE_TRACE, "Load Start.. Bad argument\n");        return NO;    }    /* Make sure that we don't carry over any old physical address */    if (!recursive) HTAnchor_clearPhysical(me->anchor);    /* Set the default method if not already done */    if (me->method == METHOD_INVALID) me->method = METHOD_GET;    /* Should we keep the error stack or not? */    if (!recursive && me->error_stack) {	HTError_deleteAll(me->error_stack);	me->error_stack = NULL;    }    /* Delete any old Response Object */    if (me->response) {	HTResponse_delete(me->response);	me->response = NULL;    }    /*    **  We set the start point of handling a request to here.    **  This time will be used by the cache    */    HTRequest_setDate(me, time(NULL));    /* Now start the Net Manager */    return HTNet_newClient(me);}PUBLIC BOOL HTServe (HTRequest * me, BOOL recursive){    if (!me || !me->anchor) {        HTTRACE(CORE_TRACE, "Serve Start. Bad argument\n");        return NO;    }    /* Make sure that we don't carry over any old physical address */    if (!recursive) HTAnchor_clearPhysical(me->anchor);    /* Should we keep the error stack or not? */    if (!recursive && me->error_stack) {	HTError_deleteAll(me->error_stack);	me->error_stack = NULL;    }    /* Delete any old Response Object */    if (me->response) {	HTResponse_delete(me->response);	me->response = NULL;    }    /* Now start the Net Manager */    return HTNet_newServer(me);}/* --------------------------------------------------------------------------*//*                              Message Body                                 *//* --------------------------------------------------------------------------*//*** This function sets the request's message body*/PUBLIC BOOL HTRequest_setMessageBody (HTRequest * request, const char * body) {#ifdef HT_EXT    if (request && body && *body){                  StrAllocCopy (request->messageBody,body);        return YES;    }#endif /* HT_EXT */        return NO;  }/*** This function deletes the message body, freeing the string and** setting it to NULL.*/PUBLIC BOOL HTRequest_deleteMessageBody (HTRequest * request) {#ifdef HT_EXT    if (request && request->messageBody) {        HT_FREE (request->messageBody);        request->messageBody = NULL;        return YES;    }           #endif /* HT_EXT */        return NO;}/*** This function creates a copy of the message body*/PUBLIC char * HTRequest_messageBody (HTRequest * request) {    char * bodycopy = NULL;     #ifdef HT_EXT        if (request && request->messageBody && *(request->messageBody))         StrAllocCopy(bodycopy,request->messageBody);    #endif /* HT_EXT */            return bodycopy;}/*** This function sets the length of the body. This length will be** used to set Content-Length header.** Note: length should be greater than 0, and the Content-Length** header will be created only if there is a message Body.*/PUBLIC BOOL HTRequest_setMessageBodyLength (HTRequest * request, long int length) {#ifdef HT_EXT        if (request && length > 0) {        request->messageBodyLength = length;        return YES;    }#endif /* HT_EXT */        return NO;}/*** This function returns the message body length,** or -1 if it is not set.*/PUBLIC long int HTRequest_messageBodyLength (HTRequest * request) {#ifdef HT_EXT        return (request && (request->messageBody && request->messageBodyLength))?                        request->messageBodyLength:-1;#else    return -1;#endif}/*** This function sets the format of the message body to be used** in the Content-Type header.** Note: the Content-Type header will be created only if there is a** message body set.*/PUBLIC BOOL HTRequest_setMessageBodyFormat (HTRequest * request, HTFormat format) {        #ifdef HT_EXT        if (request && format) {        request->messageBodyFormat = format;        return YES;    }#endif /*HT_EXT*/    return NO;}/*** This function returns the format of the message body, or** NULL if it is not set.*/PUBLIC HTFormat HTRequest_messageBodyFormat (HTRequest * request) {#ifdef HT_EXT        if (request && request->messageBodyFormat)         return request->messageBodyFormat;    else #endif /*HT_EXT*/	    	return NULL;}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产欧美另类丝袜| 亚洲二区视频在线| 日本aⅴ免费视频一区二区三区| 国产成人av电影| 日韩精品一区二区三区三区免费 | 色婷婷激情久久| 久久亚洲综合色| 秋霞影院一区二区| 欧美视频一区二| 中文字幕一区二区三区色视频| 精品一区二区综合| 欧美日韩的一区二区| 99久久99久久综合| 久久综合久久鬼色中文字| 日韩和欧美一区二区| 欧洲一区二区三区在线| 国产精品久久久久精k8| 国产iv一区二区三区| 精品裸体舞一区二区三区| 日韩vs国产vs欧美| 欧美区在线观看| 亚洲成av人影院| 欧美私模裸体表演在线观看| 亚洲欧美日韩系列| 成人美女在线观看| 国产精品视频一二三区| 国产精品综合在线视频| 亚洲精品一区二区三区四区高清 | 亚洲国产aⅴ成人精品无吗| 91日韩在线专区| 国产精品电影一区二区| 国产成人精品三级| 国产精品无圣光一区二区| 国产成人三级在线观看| 久久久精品综合| 国产精品资源在线| 国产欧美日韩在线视频| 国产成人av一区二区三区在线| 久久久久久久久一| 国产成人福利片| 欧美高清在线一区| 9色porny自拍视频一区二区| √…a在线天堂一区| 97se亚洲国产综合自在线不卡 | 久久综合999| 国产在线视视频有精品| 国产无遮挡一区二区三区毛片日本| 国产在线不卡一卡二卡三卡四卡| 久久综合色8888| 丰满白嫩尤物一区二区| 国产精品热久久久久夜色精品三区 | 亚洲一区二区欧美| 欧美日韩在线免费视频| 日韩激情一区二区| 欧美精品一区二区在线观看| 国产+成+人+亚洲欧洲自线| 国产精品拍天天在线| av电影在线观看一区| 亚洲蜜桃精久久久久久久| 欧美性色黄大片手机版| 日本不卡不码高清免费观看| 日韩一级免费观看| 国产精品一区二区你懂的| 中文字幕在线不卡| 欧美亚洲国产怡红院影院| 天天做天天摸天天爽国产一区| 美女网站一区二区| 国产亚洲欧美色| 99精品欧美一区二区三区综合在线| 亚洲美女视频在线观看| 91精品国产综合久久小美女| 国产又粗又猛又爽又黄91精品| 久久久99精品免费观看| 97精品久久久午夜一区二区三区| 亚洲va欧美va国产va天堂影院| 这里只有精品电影| 国产成人自拍高清视频在线免费播放| 国产精品无遮挡| 欧美日韩免费电影| 国产综合色在线视频区| 亚洲视频在线观看三级| 91精品婷婷国产综合久久性色| 国产一区二区精品在线观看| 亚洲免费观看高清完整版在线观看熊 | 精品一区二区三区的国产在线播放 | 成人av免费在线| 婷婷成人综合网| 国产人成亚洲第一网站在线播放| 色www精品视频在线观看| 久久99这里只有精品| 亚洲人妖av一区二区| 欧美一区二区三区视频免费播放| 成人看片黄a免费看在线| 亚洲成在线观看| 久久久99免费| 欧美猛男男办公室激情| 豆国产96在线|亚洲| 日韩中文字幕不卡| 中文字幕制服丝袜一区二区三区| 制服.丝袜.亚洲.另类.中文| 成人三级伦理片| 日本成人在线网站| ...中文天堂在线一区| 日韩欧美成人一区| 日本大香伊一区二区三区| 国产真实乱子伦精品视频| 亚洲综合成人在线| 日本一区二区三区四区| 91精品国产综合久久久久| 99精品久久只有精品| 精品一区二区三区免费毛片爱| 亚洲一线二线三线视频| 国产精品乱码久久久久久| 日韩一区二区三区观看| 在线精品国精品国产尤物884a| 国产传媒日韩欧美成人| 免费精品视频最新在线| 夜夜嗨av一区二区三区| 中文字幕精品综合| 精品国产一二三| 69堂国产成人免费视频| 色婷婷精品久久二区二区蜜臂av | 久久av中文字幕片| 亚洲国产精品天堂| 亚洲欧洲日产国码二区| 久久先锋影音av| 日韩精品最新网址| 日韩不卡在线观看日韩不卡视频| 日韩一区中文字幕| 国产午夜三级一区二区三| 日韩一区二区三区精品视频| 欧美日韩一区成人| 色综合色综合色综合| av一二三不卡影片| 成人综合激情网| 国产成人午夜高潮毛片| 国产美女在线精品| 狠狠v欧美v日韩v亚洲ⅴ| 免费一级片91| 日韩电影在线一区二区三区| 五月综合激情婷婷六月色窝| 亚洲午夜在线视频| 亚洲一区二区三区自拍| 亚洲综合色区另类av| 亚洲精品欧美激情| 亚洲视频狠狠干| 日韩美女视频一区| 亚洲色欲色欲www在线观看| 中文字幕色av一区二区三区| 欧美国产丝袜视频| 中文字幕乱码一区二区免费| 国产喷白浆一区二区三区| 久久久久久久久99精品| 久久久av毛片精品| 久久免费的精品国产v∧| 久久影院午夜论| 国产欧美视频在线观看| 国产精品网站导航| 亚洲日韩欧美一区二区在线| 亚洲品质自拍视频| 一个色在线综合| 亚洲国产精品久久艾草纯爱| 视频一区二区三区在线| 免费高清成人在线| 狠狠色综合色综合网络| 国产精品一区二区91| 国产不卡视频一区| 99久久婷婷国产综合精品电影| 91激情五月电影| 欧美日产国产精品| 日韩色视频在线观看| 欧美变态tickling挠脚心| 久久综合色8888| 中文字幕在线免费不卡| 一区二区在线观看免费| 亚洲大片免费看| 久久se精品一区精品二区| 国产精品自拍网站| 波多野结衣的一区二区三区| 一本一道久久a久久精品综合蜜臀 一本一道综合狠狠老 | 成人免费视频在线观看| 亚洲综合色丁香婷婷六月图片| 日韩不卡一区二区三区| 国产米奇在线777精品观看| www.99精品| 欧美日本乱大交xxxxx| 精品欧美一区二区在线观看| 国产色产综合色产在线视频| 亚洲日本乱码在线观看| 天天亚洲美女在线视频| 国产美女精品一区二区三区| jizz一区二区| 欧美日韩高清影院| 亚洲精品一区二区在线观看| 综合亚洲深深色噜噜狠狠网站| 亚洲高清免费视频| 国产一区二区三区不卡在线观看 | 国产在线精品免费| 色综合天天综合| 日韩一区二区三区三四区视频在线观看|