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

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

?? xpt-http.h

?? SyncML ToolKits,學(xué)習(xí)syncml的參考工具包.非常好用.
?? H
?? 第 1 頁 / 共 2 頁
字號(hào):
/*************************************************************************//* module:          Communication Services, HTTP functions               *//* file:            /src/xpt/all/xpt-http.h                              *//* target system:   all                                                  *//* target OS:       all                                                  *//*************************************************************************//* * Copyright Notice * Copyright (c) Ericsson, IBM, Lotus, Matsushita Communication  * Industrial Co., LTD,Motorola, Nokia, Palm, Inc., Psion,  * Starfish Software (2001). * All Rights Reserved. * Implementation of all or part of any Specification may require  * licenses under third party intellectual property rights,  * including without limitation, patent rights (such a third party  * may or may not be a Supporter). The Sponsors of the Specification  * are not responsible and shall not be held responsible in any  * manner for identifying or failing to identify any or all such  * third party intellectual property rights. *  * THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN ARE PROVIDED  * ON AN "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND AND ERICSSON, IBM,  * LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO. LTD, MOTOROLA,  * NOKIA, PALM INC., PSION, STARFISH SOFTWARE AND ALL OTHER SYNCML  * SPONSORS DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING  * BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION  * HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT  * SHALL ERICSSON, IBM, LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO.,  * LTD, MOTOROLA, NOKIA, PALM INC., PSION, STARFISH SOFTWARE OR ANY  * OTHER SYNCML SPONSOR BE LIABLE TO ANY PARTY FOR ANY LOSS OF  * PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF  * BUSINESS, OR FOR DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL,  * PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND IN CONNECTION WITH  * THIS DOCUMENT OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED  * OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE. *  * The above notice and this paragraph must be included on all copies  * of this document that are made. *  *//** * HTTP protocol services, function prototypes and return codes * * */#ifndef XPT_HTTP_H#define XPT_HTTP_H/*********************//* Required includes *//*********************/#include "xpt.h"#include "xpttypes.h"#include "xpt-tcp.h"#ifdef _cplusplusextern "C" {#endif#define UNDEFINED_CONTENT_LENGTH  0x7FFFFFFFL/*****************************//* Types and Data structures *//*****************************/typedef void * HttpHandle_t;   // instance handle/********************************************************//* Authentication info, Basic and Digest authentication *//********************************************************/#include "xpt-auth.h"typedef struct                   // document context   {   BufferSize_t cbSize;          // size of this structure   CString_t pszURL;             // document name   CString_t pszType;            // document MIME type   CString_t pszHost;            // host name (optional)   BufferSize_t cbLength;        // document length   CString_t pszReferer;         // referenced URL (optional)   CString_t pszRequest;         // type of the HTTP request   CString_t pszFrom;            // sender of the document   CString_t pszProxy;           // Proxy IP address   XptHmacInfoPtr_t pXSyncmlHmac; // digest values for transport header field   // %%% luz:2002-05-23: Auth support added   HttpAuthenticationPtr_t auth;  // auth structure created by authInit()   } HttpDocumentContext_t, *HttpDocumentContextPtr_t;typedef struct                   // HTTP document reply   {   BufferSize_t cbSize;          // size of this structure   CString_t pszTime;            // creation date of the replied document   CString_t pszType;            // document MIME type   BufferSize_t cbLength;        // document length   HttpAuthenticationPtr_t auth; // authentication info   XptHmacInfoPtr_t pXSyncmlHmac; // digest values for transport header field   } HttpReplyBuffer_t, * HttpReplyBufferPtr_t;/**************************//* Function return values *//**************************/typedef enum   {   HTTP_RC_RETRY         = -3,  // authentication required: resend the document   HTTP_RC_HTTP          = -2,  // server error   HTTP_RC_EOF           = -1,  // end of transmission   HTTP_RC_OK            =  0,   HTTP_RC_COMMUNICATION =  1,  // communication problem, reported by TCP/IP   HTTP_RC_PARAMETER     =  2,  // one of the parameters was invalid   HTTP_RC_NOT_ALLOWED   =  3,  // this function call is not allowed in this context   // %%%luz:2003-04-17 added these extra codes   HTTP_RC_TIMEOUT       =  4,  // timeout   HTTP_RC_CERT_EXPIRED  =  5,  // https: certificate expired   HTTP_RC_CERT_INVALID  =  6   // https: certificate invalid   } HttpRc_t;/** * FUNCTION: httpOpen * *  Opens a HTTP connection * * PRE-Condition: * *  The function is invoked if a client or server decides to process a HTTP request. * *  The TCP/IP socket that is passed to the service must have been opened via *  tcpOpen(), and the socket must be in the right mode: If a "SERVER" request *  is selected, this must be a server socket, if a "SEND", "RECEIVE", or "EXCHANGE" *  request is selected, a client socket must be passed to the function. *  Although the HTTP services utilize this socket, the socket itself must *  be opened and closed by the caller. * * POST-Condition: *  HTTP Clients: The HTTP header is transmitted to the server. If a "SEND" or "EXCHANGE" *     request was selected, the document that is specified in the 'settings' *     parameter can be transmitted to the host, using httpWrite(). *     if a "RECEIVE" request was selected, no document is transmitted to the server. *     The application can directly call httpWait () to wait for the requested *     document. * *  HTTP Server: The client's request type (either "SEND", "EXCHANGE" or "RECEIVE" *     are expected) as well as the document properties that are sent from the *     client to the server ("EXCHANGE" and "SEND" requests) are returned in the *     document context structure that is referenced by the 'settings' parameter. *     If a pointer to an authentication information structure is passed to the *     function, the structure is updated with the client's authorization *     information (userID: passphrase). * * IN: p, instance handle *     pSession, potiner to an open TCP/IP socket. *     pszMode, HTTP request type. *              "SEND", "EXCHANGE", "RECEIVE" for HTTP clients *              "SERVER" for HTTP servers * IN/OUT: *      settings, pointer to a structure that denotes the properties of the document *                to be sent or being received. *      auth, authorization info, may ne NULL. * * RETURN: HttpRc_t, return code. Refer to the type definition above for details. *     If the return value is HTTP_RC_COMMUNICATION, further error information *     can be retrieved with the httpGetError() service; * */HttpRc_t httpOpen (HttpHandle_t p,                   SocketPtr_t pSession,                   CString_t pszMode,                   HttpDocumentContextPtr_t settings,                   HttpAuthenticationPtr_t auth);/** * FUNCTION: httpWrite * *  Write a chunk of data * * PRE-Condition: *  the HTTP communication has been opened via httpOpen(), and the protocol *  is in a state where incoming data is expected: *  HTTP clients: BEFORE httpWait() has been invoked *  HTTP Server:  AFTER httpReply () has been invoked * * POST-Condition: *  The data is transmitted to the communication partner. * * IN: p, instance handle *     pchDataBuffer, pointer to a block of allocated memory for the received data *     cbDataBufferSize, size of the memory block above *     bFinal, flag indicating if input buffer is the last block to send! * * OUT: pcbDataRead, pointer to a variable that is updated with the size of the *      received data block. * * RETURN: HttpRc_t, return code. Refer to the type definition above for details. *     If the return value is HTTP_RC_COMMUNICATION, further error information *     can be retrieved with the httpGetError() service; * */HttpRc_t httpWrite (HttpHandle_t p,                    DataBuffer_t pbBuffer,                    BufferSize_t cbBufferSize,                    Bool_t bFinal);/** * FUNCTION: httpClose * *  Close an open HTTP communication * * PRE-Condition: *  A HTTP communication has been opened via httpOpen(), and the data exchange *  has been done. * * POST-Condition: *  The HTTP instance handle is invalidated, and all secondary storage and *  system resources are freed. The TCP/IP socked remains open. * * IN: p, instance handle * * RETURN: HttpRc_t, return code. Refer to the type definition above for details. *     If the return value is HTTP_RC_COMMUNICATION, further error information

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲伊人伊色伊影伊综合网| 在线精品视频免费播放| 日韩黄色片在线观看| 亚洲一区视频在线| 不卡av免费在线观看| 粉嫩13p一区二区三区| 高清成人在线观看| 99国产麻豆精品| 色综合色狠狠综合色| 欧美在线视频不卡| 91麻豆精品国产91久久久| 欧美高清视频不卡网| 精品区一区二区| 国产日韩欧美精品电影三级在线| 精品1区2区在线观看| 国产精品视频一二三区| 亚洲精品视频一区二区| 亚洲国产色一区| 美日韩黄色大片| 国产精品一区久久久久| 不卡影院免费观看| 欧美日韩精品一二三区| 精品日韩99亚洲| 国产精品理伦片| 无码av免费一区二区三区试看| 免费观看久久久4p| 99久久婷婷国产| 91精品国产综合久久精品| 久久久久久久久久电影| 伊人婷婷欧美激情| 精品一区二区三区在线播放| 95精品视频在线| 日韩一区二区高清| 1区2区3区国产精品| 蜜芽一区二区三区| 色综合亚洲欧洲| 欧美va天堂va视频va在线| 亚洲卡通欧美制服中文| 久久电影国产免费久久电影| 一本大道综合伊人精品热热 | 国产a区久久久| 在线影院国内精品| 国产亲近乱来精品视频| 日韩电影在线免费看| 99精品视频在线观看免费| 欧美成人性战久久| 亚洲国产色一区| 97精品视频在线观看自产线路二| 日韩精品最新网址| 色综合色综合色综合色综合色综合 | 精品国偷自产国产一区| 在线免费精品视频| 中文字幕巨乱亚洲| 美女在线一区二区| 666欧美在线视频| 夜夜嗨av一区二区三区中文字幕| 高清不卡在线观看av| 精品欧美黑人一区二区三区| 亚洲v中文字幕| 在线视频综合导航| 亚洲欧美国产高清| 99热精品国产| 国产精品免费久久| 国产二区国产一区在线观看| 日韩欧美一区电影| 青青草国产精品亚洲专区无| 久久美女高清视频| 久久精品99久久久| 日韩一区二区免费高清| 蜜桃精品视频在线观看| 91精品国产免费久久综合| 婷婷久久综合九色综合伊人色| 91久久人澡人人添人人爽欧美| 自拍偷拍国产亚洲| eeuss国产一区二区三区| 国产精品国产馆在线真实露脸| 国产成人在线看| 欧美国产成人精品| 99热99精品| 一区二区日韩av| 欧美日韩国产天堂| 免费成人你懂的| 久久久亚洲精华液精华液精华液 | 久久久久高清精品| 国产·精品毛片| 亚洲欧美色图小说| 欧洲人成人精品| 日韩av电影免费观看高清完整版 | 亚洲成人一区二区| 欧美一区二区大片| 国产精品中文有码| 国产精品国产三级国产aⅴ中文 | 欧美一区日韩一区| 黄网站免费久久| 亚洲色图20p| 在线观看91av| 国产成人午夜视频| 亚洲精品成a人| 日韩精品自拍偷拍| 99久久免费精品高清特色大片| 国产专区综合网| 国产精品久久久久aaaa樱花 | 六月丁香婷婷久久| 国产欧美日韩精品在线| 日本高清不卡aⅴ免费网站| 日韩福利电影在线| 国产三级精品三级| 欧美群妇大交群的观看方式| 国产一区二区按摩在线观看| 尤物av一区二区| 久久亚洲一级片| 欧美日韩一区精品| 国产白丝精品91爽爽久久| 天堂在线一区二区| 国产精品欧美久久久久一区二区| 欧美性大战久久久久久久| 国产一区二区剧情av在线| 一区二区三区日韩精品| 久久精品人人做人人综合 | 国产欧美日韩三级| 制服.丝袜.亚洲.另类.中文| 成人做爰69片免费看网站| 日本欧美久久久久免费播放网| 国产精品午夜免费| 日韩亚洲欧美高清| 色噜噜夜夜夜综合网| 国产白丝网站精品污在线入口| 日韩在线a电影| 亚洲毛片av在线| 久久精品亚洲乱码伦伦中文| 欧美一区二区三区四区久久| 国产精品美女视频| 欧美成人精品二区三区99精品| 在线视频中文字幕一区二区| 不卡视频免费播放| 国产在线不卡一区| 日韩中文字幕一区二区三区| 91久久国产最好的精华液| 成人aa视频在线观看| 国产精品伊人色| 国内成人精品2018免费看| 另类小说综合欧美亚洲| 午夜欧美在线一二页| 亚洲一区二区三区四区的| 1000部国产精品成人观看| 国产精品毛片a∨一区二区三区| 精品国免费一区二区三区| 精品美女一区二区三区| 欧美一区二区在线免费观看| 欧美日韩精品电影| 欧美美女视频在线观看| 欧美日韩视频在线观看一区二区三区 | 久久99国产精品尤物| 免费在线观看不卡| 久热成人在线视频| 国产一区二区精品久久| 国内成人自拍视频| 成人免费av在线| 中文字幕av一区二区三区高| 日韩国产欧美在线播放| 午夜成人在线视频| 免费高清视频精品| 国产一区二区精品久久99| 丰满少妇在线播放bd日韩电影| 波多野结衣中文一区| 91热门视频在线观看| 在线观看免费视频综合| 欧美精品黑人性xxxx| 精品不卡在线视频| 国产精品美女久久久久久久网站| 亚洲男人的天堂av| 亚洲一区视频在线观看视频| 蜜桃视频第一区免费观看| 日本一区二区免费在线| 亚洲欧美偷拍卡通变态| 91福利国产成人精品照片| 欧美精品在线一区二区三区| 精品少妇一区二区三区免费观看| 国产人伦精品一区二区| 亚洲激情校园春色| 久久aⅴ国产欧美74aaa| 99久久精品免费| 91精品国产福利在线观看| 欧美激情一区不卡| 亚洲电影中文字幕在线观看| 国产真实乱子伦精品视频| 91浏览器在线视频| 欧美精品一区二区精品网| 一区二区三区欧美久久| 精品写真视频在线观看| 日本精品一级二级| 精品国产髙清在线看国产毛片| 成人av在线观| 日韩一区二区在线看| 亚洲人吸女人奶水| 国产高清视频一区| 91精品国产色综合久久ai换脸 | 国产精品久久久爽爽爽麻豆色哟哟| 亚洲图片欧美视频| 国产成人免费在线视频|