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

📄 wwwfile.h

📁 firtext搜索引擎源码
💻 H
字号:
/*  					W3C Sample Code Library libwww Local File Access!  Declaration of W3C Sample Code Local File Access!*//***	(c) COPYRIGHT MIT 1995.**	Please first read the full copyright statement in the file COPYRIGH.*//*This is the module for accessing local files and directories. The modulecontans*/#ifndef WWWFILE_H#define WWWFILE_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"/*(  Access the Local File System)The WWWFile interface provides a platform independent access scheme for localfiles. The local file access works exactly like any other access scheme,for example HTTP, in that the "file protocol" is independent of the underlyingtransport. This can be used to for example slide in a CVS transport layserunderneath the file module without making any modifications to the file moduleitself. You can read more about the transport managament in theTransport Interface.*/#include "HTFile.h"/*(  Content Negotiation)When accessing the local file system, you can enable content negotiationas described in the HTTPspecification.  The content negotiation algorithm is based on filesuffixes as defined by the Bind manager. When lookingfor a file you do not have to specify a suffix. Instead this modulelooks for all alternatives with the same main name. For example, lookingfor the file Overview can result in any of the files (or directories)Overview.txt, Overview.html, Overview.ps etc. The selectionalgorithm is based on the values of the preferences for language, media type,encoding, etc. - exactly like a server would do with the acceptheaders.*/#include "HTMulti.h"/*(  File Suffix Binding)This module sets up the binding between a file suffix and a media type, language,encoding etc. In a client application the suffixes are used in protocolsthat does not directly support media types etc., like FTP, and in serverapplications they are used to make the bindings between the server and thelocal file store that the server can serve to the rest of the world (wellalmost)*/#include "HTBind.h"/*.  Default File Suffix Bindings.Register the default set of bindings between file suffixes and media types.This is used for example to guess the media type of a FTP URL of a localfile URL.*/#include "HTBInit.h"/*End of FILE module*/#ifdef __cplusplus} /* end extern C definitions */#endif#endif/*    @(#) $Id: WWWFile.html,v 2.11 2000/07/04 15:08:14 kahan Exp $*/

⌨️ 快捷键说明

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