资源简介
fcgi-2.4.0 在网上免费下载的,好难找啊
代码片段和文件信息
/*
* cgifcgi.c --
*
* CGI to FastCGI bridge
*
*
* Copyright (c) 1996 Open Market Inc.
*
* See the file “LICENSE.TERMS“ for information on usage and redistribution
* of this file and for a DISCLAIMER OF ALL WARRANTIES.
*
*/
#ifndef lint
static const char rcsid[] = “$Id: cgi-fcgi.cv 1.15 2001/09/01 01:14:28 robs Exp $“;
#endif /* not lint */
#include
#include
#include
#include
#include
#include
#include
#include “fcgi_config.h“
#ifdef HAVE_NETDB_H
#include
#endif
#ifdef _WIN32
#include
#include
#else
extern char **environ;
#endif
#ifdef HAVE_SYS_PARAM_H
#include
#endif
#ifdef HAVE_SYS_TIME_H
#include
#endif
#ifdef HAVE_UNISTD_H
#include
#endif
#include “fcgimisc.h“
#include “fcgiapp.h“
#include “fastcgi.h“
#include “fcgios.h“
static int wsReadPending = 0;
static int fcgiReadPending = 0;
static int fcgiWritePending = 0;
static void ScheduleIo(void);
/*
* Simple buffer (not ring buffer) type used by all event handlers.
*/
#define BUFFLEN 8192
typedef struct {
char *next;
char *stop;
char buff[BUFFLEN];
} Buffer;
/*
*----------------------------------------------------------------------
*
* GetPtr --
*
* Returns a count of the number of characters available
* in the buffer (at most n) and advances past these
* characters. Stores a pointer to the first of these
* characters in *ptr.
*
*----------------------------------------------------------------------
*/
static int GetPtr(char **ptr int n Buffer *pBuf)
{
int result;
*ptr = pBuf->next;
result = min(n pBuf->stop - pBuf->next);
pBuf->next += result;
return result;
}
/*
*----------------------------------------------------------------------
*
* MakeHeader --
*
* Constructs an FCGI_Header struct.
*
*----------------------------------------------------------------------
*/
static FCGI_Header MakeHeader(
int type
int requestId
int contentLength
int paddingLength)
{
FCGI_Header header;
ASSERT(contentLength >= 0 && contentLength <= FCGI_MAX_LENGTH);
ASSERT(paddingLength >= 0 && paddingLength <= 0xff);
header.version = FCGI_VERSION_1;
header.type = (unsigned char) type;
header.requestIdB1 = (unsigned char) ((requestId >> 8) & 0xff);
header.requestIdB0 = (unsigned char) ((requestId ) & 0xff);
header.contentLengthB1 = (unsigned char) ((contentLength >> 8) & 0xff);
header.contentLengthB0 = (unsigned char) ((contentLength ) & 0xff);
header.paddingLength = (unsigned char) paddingLength;
header.reserved = 0;
return header;
}
/*
*----------------------------------------------------------------------
*
* MakeBeginRequestBody --
*
* Constructs an FCGI_BeginRequestBody record.
*
*-------------------------------------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 14457 2001-12-21 11:12 fcgi-2.4.0\fcgi-2.4.0\acinclude.m4
文件 149109 2003-01-20 01:21 fcgi-2.4.0\fcgi-2.4.0\aclocal.m4
文件 24905 2001-09-01 09:14 fcgi-2.4.0\fcgi-2.4.0\cgi-fcgi\cgi-fcgi.c
文件 4291 2001-09-01 09:14 fcgi-2.4.0\fcgi-2.4.0\cgi-fcgi\cgi-fcgi.mak
文件 393 2001-12-22 11:16 fcgi-2.4.0\fcgi-2.4.0\cgi-fcgi\Makefile.am
文件 9877 2003-01-20 01:21 fcgi-2.4.0\fcgi-2.4.0\cgi-fcgi\Makefile.in
文件 2774 2001-12-22 21:56 fcgi-2.4.0\fcgi-2.4.0\compile
文件 38214 2001-09-22 02:29 fcgi-2.4.0\fcgi-2.4.0\config.guess
文件 27872 2001-09-22 02:29 fcgi-2.4.0\fcgi-2.4.0\config.sub
文件 292344 2003-01-20 01:21 fcgi-2.4.0\fcgi-2.4.0\configure
文件 2679 2003-01-20 01:19 fcgi-2.4.0\fcgi-2.4.0\configure.in
文件 12117 2001-09-22 00:49 fcgi-2.4.0\fcgi-2.4.0\depcomp
文件 4376 1997-09-16 23:36 fcgi-2.4.0\fcgi-2.4.0\doc\cgi-fcgi.1
文件 9524 2002-02-25 08:45 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\apaman.htm
文件 8713 2002-02-25 08:45 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\ap_guida.htm
文件 7314 2002-02-25 08:45 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\ap_guide.htm
文件 7194 1997-09-16 23:36 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\ch1inta1.gif
文件 6208 1997-09-16 23:36 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\ch1intra.gif
文件 24878 2002-02-25 08:45 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\ch1intro.htm
文件 13178 2003-01-20 00:58 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\ch2c.htm
文件 4900 2002-02-25 08:45 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\ch3perl.htm
文件 4210 2002-02-25 08:45 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\ch4tcl.htm
文件 4254 2002-02-25 08:45 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\cover.htm
文件 42128 1997-09-16 23:36 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-prog-guide\covera.gif
文件 38537 2002-02-25 08:45 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-whitepaper\fastcgi.htm
文件 4128 1997-09-16 23:36 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-whitepaper\img00001.gif
文件 2426 1997-09-16 23:36 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-whitepaper\img00002.gif
文件 3779 1997-09-16 23:36 fcgi-2.4.0\fcgi-2.4.0\doc\fastcgi-whitepaper\img00003.gif
文件 33162 2002-02-25 08:42 fcgi-2.4.0\fcgi-2.4.0\doc\fcgi-devel-kit.htm
文件 20522 2002-02-25 08:42 fcgi-2.4.0\fcgi-2.4.0\doc\fcgi-java.htm
............此处省略115个文件信息
- 上一篇:截屏和编辑截图工具
- 下一篇:BI工程师面试题 帆软认证BI工程师FCBA
评论
共有 条评论