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

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

?? hthost.h

?? www工具包. 這是W3C官方支持的www支撐庫. 其中提供通用目的的客戶端的WebAPI: complete HTTP/1.1 (with caching, pipelining, PUT, POS
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*  					W3C Sample Code Library libwww Host Class!  The Host Class!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*The Host class manages what we know about a remote host. This can for examplebe what type of host it is, and what version it is using. Notice that a hostobject can be used to describe both a server or a client - all informationin the Host object can be shared regardless of whether it is to be used ina server application or a client application.This module is implemented by HTHost.c, and it isa part of the  W3C Sample CodeLibrary.*/#ifndef HTHOST_H#define HTHOST_Htypedef struct _HTHost HTHost;#define HOST_HASH_SIZE		HT_M_HASH_SIZE#include "HTChannl.h"#include "HTReq.h"#include "HTEvent.h"#include "HTProt.h"#include "HTTimer.h"/*The Host class contains information about the remote host, for example thetype (HTTP/1.0, HTTP/1.1, FTP etc.) along with information on how the connectionscan be used (if it supports persistent connections, interleaved access etc.).  Creation and Deletion Methods.We keep a cache of information that we know about a remote host. This allowsus to be much more detailed in generating requests. Search the host infocache for a host object or create a new one and add it. Examples of hostnames are	 	   o 	     www.w3.org	   o 	     www.foo.com:8000	 	 (  Add a Host Object)*/extern HTHost * HTHost_new (char * host, u_short u_port);extern HTHost * HTHost_newWParse(HTRequest * request, char * url, u_short u_port);extern int HTHost_hash (HTHost * host);/*(  Delete a Host Object)The Host Class contains an automatic garbage collection of Host objects sothat we don't keep information around that is stale.(  Find a Host Object)Searches the cache of known hosts to see if we already have information aboutthis host. If not then we return NULL.*/extern HTHost * HTHost_find (char * host);/*(  Delete the Host table)Cleanup and delete the host table.*/extern void HTHost_deleteAll (void);/*(  Is Host Idle?)You can use this function to see whether a host object is idle or in use.We have several modes describing how and when a host is idle. This is a functionof the Transport Object*/extern BOOL HTHost_isIdle (HTHost * host);/*.  Remote Host Information.We keep track of the capabilities of the host in the other end so thatwemay adjust our queries to fit it better(  Remote Host Name)Get the name of the remote host. This is set automatically when a new Hostobject and can be asked for at any point in time. You can not change thehost name but must create a new Host object instead.*/extern char * HTHost_name	(HTHost * host);/*(  Remote Host Protocol Class and Version)Define the host class of the host at the other end. A class is ageneric description of the protocol which is exactly like the access methodin a URL, for example "http" etc. The host version is a finerdistinction (sub-class) between various versions of the host class, for exampleHTTP/0.9, HTTP/1.1 etc. The host version is a bit flag that the protocolmodule can define on its own. That way we don't have to change this modulewhen registering a new protocol module. The host type is a descriptionof whether we can keep the connection persistent or not.*/extern char * HTHost_class	(HTHost * host);extern void HTHost_setClass	(HTHost * host, char * s_class);extern int  HTHost_version	(HTHost * host);extern void HTHost_setVersion	(HTHost * host, int version);/*(  Public Methods accessible on This Host)A server can inform a client about the supported methods using thePublic header.*/extern HTMethod HTHost_publicMethods 	(HTHost * me);extern void HTHost_setPublicMethods 	(HTHost * me, HTMethod methodset);extern void HTHost_appendPublicMethods	(HTHost * me, HTMethod methodset);/*(  Server Name of Remote Host)A server can send its server application name and version in a HTTP response.We pick up this information and add it to the Host object*/extern char * HTHost_server	(HTHost * host);extern BOOL HTHost_setServer	(HTHost * host, const char * server);/*(  User Agent Name of Remote Host)A client can send the name of the client application in a HTTP request. Wepick up this information and add it to the Host Object*/extern char * HTHost_userAgent 	(HTHost * host);extern BOOL HTHost_setUserAgent	(HTHost * host, const char * userAgent);/*(  Range Units Accepted by this Host)Since all HTTP entities are represented in HTTP messages as sequences ofbytes, the concept of a byte range is meaningful for any HTTP entity. (However,not all clients and servers need to support byte-range operations.) Byterange specifications in HTTP apply to the sequence of bytes in the entity-body(not necessarily the same as the message-body). A byte range operation mayspecify a single range of bytes, or a set of ranges within a single entity.You can also check whether a specific range unit is OK. We always sayYES except if we have a specific statement from the server thatit doesn't understand byte ranges - that is - it has sent "none" in a"Accept-Range" response header*/extern char * HTHost_rangeUnits  (HTHost * host);extern BOOL HTHost_setRangeUnits (HTHost * host, const char * units);extern BOOL HTHost_isRangeUnitAcceptable (HTHost * host, const char * unit);/*(  User Defined Contexts)This can be used for anything that the application would like to keep tabson.*/extern void HTHost_setContext (HTHost * me, void * context);extern void * HTHost_context  (HTHost * me);/*.  Register a Request on a Host Object.Requests are queued in the Host object until we haveresources to start them. The request is in the formof a Net object as we may have multiple socket requestsper Request object. This is for example the casewith FTP which uses two connections.*/extern int  HTHost_addNet    (HTHost * host, HTNet * net);extern BOOL HTHost_deleteNet (HTHost * host, HTNet * net, int status);extern HTList * HTHost_net   (HTHost * host);/*.  Channels.A Channel object is an abstraction for a transport,like a TCP connection, for example. Each host object can have at most onechannel object associated with it.(  Create a Channel to a Host)As a Net Object doesn't necessarily know whetherthere is a channel up and running and whether that channel can be reused,it must do an explicit connect the the host.*/extern int HTHost_connect (HTHost * host, HTNet * net, char * url);extern int HTHost_accept  (HTHost * host, HTNet * net, char * url);extern int HTHost_listen  (HTHost * host, HTNet * net, char * url);/*(  Is Channel About to Close?)As soon as we know that a channel is about to close (for example becausethe server sends us a Connection: close header field) then we registerthis informtation in the Host object:*/extern BOOL HTHost_setCloseNotification (HTHost * host, BOOL mode);extern BOOL HTHost_closeNotification (HTHost * host);/*(  Find Channel Associated with a Host Object)Here you can find an already associated channel with a host object or youcan explicitly associate a channel with a host object.*/extern BOOL HTHost_setChannel (HTHost * host, HTChannel * channel);extern HTChannel * HTHost_channel (HTHost * host);/*(  Delete a Channel)When a channel is deleted, it must be unregistered from the host object whichis done by this operation:*/extern BOOL HTHost_clearChannel (HTHost * host, int status);/*.  Transport Mode.The way a channel can be used depends on thetransport and what mode the channel is in. Themode (whether we can use persistent connections, pipeline, etc.) may changemode in the middle of a connection If the new mode is lower than the oldmode then adjust the pipeline accordingly. That is, if we are going intosingle mode then move all entries in the pipeline and move the rest to thepending queue. They will get launched at a later point in time.*/extern HTTransportMode HTHost_mode (HTHost * host, BOOL * active);extern BOOL HTHost_setMode (HTHost * host, HTTransportMode mode);/*.  Handling Pending Requests.There are two ways we can end up with pending requests:  o 	     If we are out of sockets then register new host objects as pending.	   o 	     If we are pending on a connection then register new net objects as pending	 This set of functions handles pending host objects and can start new requestsas resources get available. The first function checks the host object for

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产婷婷综合在线精品| 五月婷婷欧美视频| 亚洲综合图片区| 久久精品久久久精品美女| 成人av资源网站| 欧美大尺度电影在线| 一区二区三区在线视频免费| 国产乱人伦偷精品视频不卡| 69精品人人人人| 一区二区三区在线观看国产| 国产成人高清视频| 91麻豆精品国产自产在线| 亚洲色图第一区| 国产69精品久久久久毛片| 日韩精品专区在线影院重磅| 黄色成人免费在线| 欧美精品日韩综合在线| 亚洲欧美偷拍卡通变态| 成人av网在线| 国产精品美女一区二区三区| 精品一区二区三区在线观看国产| 日本电影欧美片| 最近日韩中文字幕| 成人在线综合网| 国产精品伦一区二区三级视频| 国模少妇一区二区三区| 精品国产不卡一区二区三区| 免费成人av在线| 日韩一卡二卡三卡国产欧美| 日欧美一区二区| 91精品国产综合久久精品麻豆| 亚洲一区二区三区四区中文字幕 | 91在线丨porny丨国产| 久久影院视频免费| 国产成人综合在线播放| 国产亚洲欧美日韩俺去了| 国产剧情av麻豆香蕉精品| 精品久久久久久无| 国产麻豆成人传媒免费观看| 久久久久久久久久久久久夜| 国产成人综合在线观看| 国产精品人妖ts系列视频| 99久久国产综合精品女不卡| 国产二区国产一区在线观看| 国产午夜精品美女毛片视频| 成人av资源站| 亚洲成人精品影院| 日韩精品中文字幕一区 | 亚洲一区自拍偷拍| 在线观看日韩电影| 免费高清在线视频一区·| 久久你懂得1024| 不卡的av电影在线观看| 亚洲综合色成人| 日韩欧美激情一区| 本田岬高潮一区二区三区| 亚洲欧美日本韩国| 欧美一区二区三级| 成人永久aaa| 亚洲成人一区二区在线观看| 26uuu精品一区二区在线观看| 成人av综合一区| 奇米影视在线99精品| 国产午夜亚洲精品不卡| 色综合天天做天天爱| 天天综合天天综合色| 国产区在线观看成人精品 | 亚洲成人7777| 久久久久久久久免费| 在线观看免费视频综合| 国产在线视频一区二区| 一区二区三区中文在线| 久久精品日产第一区二区三区高清版 | 亚洲最新视频在线观看| 久久久综合精品| 欧美日韩你懂得| 成人午夜激情影院| 免费精品视频最新在线| 亚洲欧美日韩国产中文在线| 欧美精品一区二区三区在线| 欧美在线不卡一区| 岛国一区二区在线观看| 奇米色777欧美一区二区| 亚洲三级在线免费观看| 国产亚洲精品7777| 91精品国产综合久久久久久漫画| www.欧美色图| 国产成人亚洲综合色影视| 亚洲大尺度视频在线观看| 中文字幕一区在线观看视频| 欧美mv和日韩mv国产网站| 欧美精品在线观看播放| 色噜噜狠狠色综合中国| 99re这里都是精品| 国产东北露脸精品视频| 九九九精品视频| 日本伊人午夜精品| 婷婷亚洲久悠悠色悠在线播放 | 亚洲va天堂va国产va久| 亚洲欧美在线视频观看| 国产日韩在线不卡| 久久久久久一级片| 久久久久久麻豆| 久久精品视频一区二区三区| 久久嫩草精品久久久久| 亚洲国产精品一区二区久久| 亚洲精品久久7777| 亚洲视频在线观看三级| 成人免费一区二区三区视频 | 日韩免费一区二区三区在线播放| 欧美挠脚心视频网站| 欧美日韩国产片| 欧美一级久久久久久久大片| 欧美二区在线观看| 91精品国产综合久久小美女| 欧美精品日韩一本| 日韩欧美久久久| 国产色产综合产在线视频| 国产日本欧洲亚洲| 亚洲天堂成人在线观看| 一区二区三区精品在线观看| 亚洲国产色一区| 免费在线观看视频一区| 精品一区二区久久| 国产成人av资源| 色综合一区二区三区| 欧美男生操女生| 精品免费日韩av| 国产精品欧美久久久久一区二区| 国产精品夫妻自拍| 一区二区三区不卡在线观看| 亚洲成a人片综合在线| 免费在线欧美视频| 国产suv精品一区二区6| 91在线观看视频| 欧美精选一区二区| 久久精品人人做人人爽人人| 亚洲乱码国产乱码精品精可以看| 亚洲一区二区三区四区在线免费观看| 亚洲成人激情综合网| 激情综合网av| 色天天综合色天天久久| 在线成人小视频| 国产日韩视频一区二区三区| 亚洲一区影音先锋| 激情小说欧美图片| 一本大道综合伊人精品热热| 日韩一区二区精品葵司在线 | 亚洲图片欧美综合| 韩国av一区二区三区四区| 97久久精品人人做人人爽50路| 欧美日韩一区二区电影| 久久久久久久精| 日韩精品亚洲一区| 成人免费不卡视频| 欧美一区二区三区性视频| 中文字幕不卡一区| 日韩中文字幕1| 成人app网站| 欧美xxxxx牲另类人与| 亚洲人被黑人高潮完整版| 捆绑变态av一区二区三区| 一本久道久久综合中文字幕| 精品国产一区久久| 亚洲电影欧美电影有声小说| 国产91丝袜在线播放九色| 欧美高清dvd| 亚洲男人的天堂在线aⅴ视频| 久久精品99久久久| 欧美日韩高清一区二区三区| 国产精品久久99| 国产精品91一区二区| 亚洲一二三四在线观看| 国产精品伊人色| 日韩片之四级片| 天天操天天干天天综合网| 91在线视频官网| 国产精品视频麻豆| 国内外成人在线| 日韩欧美中文字幕精品| 亚洲bt欧美bt精品| 在线免费不卡电影| 亚洲激情中文1区| 99r国产精品| 亚洲视频一二区| a在线欧美一区| 国产精品视频九色porn| 国产电影一区二区三区| 欧美精品一区二区三区一线天视频| 日本 国产 欧美色综合| 制服丝袜成人动漫| 视频一区二区三区中文字幕| 精品1区2区3区| 亚洲在线视频一区| 在线视频国产一区| 亚洲综合激情小说| 色综合欧美在线| 亚洲欧美二区三区| 99精品在线免费| 亚洲欧洲综合另类在线|