⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wwwmime.h

📁 firtext搜索引擎源码
💻 H
字号:
/*  					W3C Sample Code Library libwww MIME and RFC822!  Declaration of W3C Sample Code MIME and RFC822!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*This is the module for basic RFC822/MIME parsing that can be used togetherwith the core of the W3C Sample Code Library. It contains all MIME specificmodules which are required to compile and build the MIME DLL.*/#ifndef WWWMIME_H#define WWWMIME_H/**/#ifdef __cplusplusextern "C" { #endif/*(  System dependencies)The wwwsys.h file includes system-specific includefiles and flags for I/O to network and disk. The only reason for this fileis that the Internet world is more complicated than Posix and ANSI.*/#include "wwwsys.h"/*(  MIME Entity Header Parsing)The libwww MIME parsers are completely generic in that they don't know aboutany particular headers - they are all registered at run-time by the application.There are two parsers: the first is for parsing MIME headers and thesecond is for parsing MIME footers. They are both converters thatcan be set up using the HTConverterInitfunction in the libwww setup moduleThere is also a default set of the headers defined by theHTTP/1.1 specificationwhich can be initialized using theHTMIMEInit() function in thelibwww setup module.*/#include "HTMIME.h"			/* Generic MIME parser */#include "HTHeader.h"			/* Header parser registration *//*(  MIME Entity Header Generation)When sending a MIME entity along with a request, for example using NNTP orHTTP, the entity headers are generated by the MIME generator stream. Thisstream will be added to the output stream pipe in order to decorate the outgoingrequest.*/#include "HTMIMERq.h"			/* MIME request generator *//*(  Default MIME Header Parsers)The Library's MIME parser is divided into two parts: A generic MIME parserthat knows how to unwrap all RFC822 headers and specialized header parsersthat knows how to parse Content-Length, for example. This isthe default set of the specialized MIME header parsers that can be registeredas part of the generic MIME. Note that these functions are not registeredby default - they must be registered by the application. This can be doneusing the HTMIMEInit() function in theWWWInit interface. Of course this can also beused to register new headers that are not represented below - or if you wantto replace a default parser then this is also very easy.*/#include "HTMIMImp.h"/*(  Multipart MIME Parsing and Generation)Libwww supports MIME multipart generation and parsing using two streams.The parser stream is a converter that can be setup for"converting" the MIMEbody parts into separate documents. The MIME multipart stream parser canbe set up by using the HTConverterInitfunction in the libwww setup module.*/#include "HTBound.h"			/* Multipart MIME parser */#include "HTMulpar.h"			/* Multipart MIME generator stream *//*End of MIME modules*/#ifdef __cplusplus} /* end extern C definitions */#endif#endif/*    @(#) $Id: WWWMIME.html,v 2.11 1998/05/14 02:11:22 frystyk Exp $*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -