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

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

?? htreqman.c

?? www工具包. 這是W3C官方支持的www支撐庫. 其中提供通用目的的客戶端的WebAPI: complete HTTP/1.1 (with caching, pipelining, PUT, POS
?? C
?? 第 1 頁 / 共 3 頁
字號:
    }    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;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久久搜平片| 综合久久久久久久| 久久久久99精品一区| 亚洲一区在线观看网站| 国产成人精品免费在线| 91精品国产综合久久久久久久| 国产精品久久久99| 精品亚洲成av人在线观看| 在线免费av一区| 欧美国产成人精品| 国产原创一区二区三区| 日韩一级大片在线观看| 亚洲一级电影视频| 色婷婷国产精品久久包臀 | 国产精品免费视频一区| 美女一区二区久久| 欧美精品一二三四| 亚洲精品国产a久久久久久 | 91国内精品野花午夜精品| 国产日本亚洲高清| 国产美女视频91| 精品福利一二区| 美洲天堂一区二卡三卡四卡视频 | 国产午夜亚洲精品午夜鲁丝片 | 国产精品色哟哟| 国产乱码精品一区二区三区五月婷| 欧美一区二区视频观看视频| 亚洲一二三级电影| 欧美日韩在线精品一区二区三区激情| 中文字幕av一区二区三区高| 成人综合婷婷国产精品久久免费| 久久久久久久久伊人| 国产一区 二区 三区一级| 久久免费的精品国产v∧| 国产一区二区0| 中文字幕乱码久久午夜不卡 | 日韩欧美国产综合一区| 美女高潮久久久| 久久人人97超碰com| 国产黄色精品视频| 国产拍欧美日韩视频二区| 国产精品综合二区| 国产精品久久久久久久久免费桃花 | 1000精品久久久久久久久| 99热99精品| 一区二区三区不卡在线观看 | 欧美一区日韩一区| 美日韩一区二区| 久久精品欧美日韩| av毛片久久久久**hd| 亚洲中国最大av网站| 91精品久久久久久蜜臀| 国产精品伊人色| 中文字幕色av一区二区三区| 欧美午夜免费电影| 另类人妖一区二区av| 国产欧美日韩中文久久| 色老汉av一区二区三区| 午夜精品久久久久| 久久久www免费人成精品| www.亚洲人| 日韩av一区二区在线影视| 26uuu色噜噜精品一区二区| 91在线视频免费91| 日韩国产欧美视频| 国产精品久久网站| 51久久夜色精品国产麻豆| 丰满岳乱妇一区二区三区| 亚洲一卡二卡三卡四卡五卡| 精品国产乱码久久久久久免费 | 首页国产丝袜综合| 国产亚洲人成网站| 欧美日韩精品是欧美日韩精品| 国精品**一区二区三区在线蜜桃| 亚洲日本青草视频在线怡红院| 欧美一区二区三区四区在线观看| 成人蜜臀av电影| 青青草一区二区三区| 中文字幕永久在线不卡| 欧美大片顶级少妇| 欧美三级电影网| 成人精品免费视频| 久久黄色级2电影| 亚洲大片在线观看| 中文字幕一区二区三区四区不卡| 欧美一区二区在线观看| 91国产成人在线| 丁香一区二区三区| 精品一区二区在线免费观看| 亚洲在线免费播放| 亚洲欧美偷拍另类a∨色屁股| www国产亚洲精品久久麻豆| 欧美午夜一区二区三区免费大片| 不卡视频一二三| 国产精品一二三四区| 美国欧美日韩国产在线播放| 亚洲高清免费观看高清完整版在线观看| 欧美国产乱子伦| 久久久美女毛片| 精品免费日韩av| 日韩一区二区视频| 欧美一区二区三区在线观看| 在线不卡免费欧美| 欧美精品v国产精品v日韩精品| 日本高清成人免费播放| 91麻豆国产香蕉久久精品| 成人18精品视频| 成人97人人超碰人人99| 成人av影院在线| 成人国产精品免费网站| 波多野结衣在线一区| 成人午夜免费av| 99久久免费国产| 91麻豆自制传媒国产之光| 99久久精品国产毛片| 成人高清视频免费观看| 99久久国产免费看| 色悠悠亚洲一区二区| 色吊一区二区三区| 欧美性感一区二区三区| 欧美三级在线看| 欧美一区日韩一区| 2020国产精品自拍| 国产精品美女久久久久久久久| 国产精品网友自拍| 一区二区三区四区蜜桃 | 91精品国产综合久久久久久| 日韩欧美一二三区| 国产女人aaa级久久久级| 欧美国产精品中文字幕| 亚洲精品美国一| 日日摸夜夜添夜夜添国产精品 | 亚洲香蕉伊在人在线观| 日韩—二三区免费观看av| 免费高清成人在线| 国产成人综合在线观看| 色综合久久中文字幕综合网| 在线观看亚洲精品| 欧美一区二区三区人| 久久网站最新地址| 亚洲色图视频免费播放| 视频一区在线播放| 国产美女在线观看一区| 91精品91久久久中77777| 欧美一区二区视频在线观看2020| 国产免费成人在线视频| 亚洲综合区在线| 国内精品伊人久久久久影院对白| 99精品久久久久久| 欧美一区二区三级| 国产精品久久久久7777按摩| 男女男精品网站| 91亚洲男人天堂| 日韩欧美精品三级| 亚洲精品欧美在线| 国产一区二区三区日韩| 欧美在线小视频| 久久久精品tv| 日韩黄色片在线观看| youjizz国产精品| 日韩精品综合一本久道在线视频| 亚洲人成网站影音先锋播放| 精品中文字幕一区二区小辣椒| 91香蕉视频黄| 国产午夜精品一区二区三区视频 | 99久久精品国产一区| 精品国产免费人成在线观看| 亚州成人在线电影| 99国产精品久| 久久嫩草精品久久久久| 日韩电影在线一区| 欧美三级中文字| 一区二区三区电影在线播| 国产成人精品亚洲午夜麻豆| 日韩欧美国产综合一区| 婷婷开心激情综合| 在线精品视频一区二区三四| 国产欧美视频一区二区三区| 激情图片小说一区| 51精品国自产在线| 亚洲一本大道在线| 欧美午夜精品久久久久久孕妇| 亚洲人123区| a亚洲天堂av| 国产精品国模大尺度视频| 国产大陆亚洲精品国产| 久久丝袜美腿综合| 激情久久五月天| 欧美大片在线观看| 奇米四色…亚洲| 欧美一二三四在线| 日本美女视频一区二区| 69堂成人精品免费视频| 亚洲成人中文在线| 欧美色图免费看| 亚洲va中文字幕| 欧美人与禽zozo性伦| 天天操天天色综合| 91麻豆精品国产91久久久更新时间| 天天操天天干天天综合网|