[Top] [Prev] [Next] [Bottom]

1. The Fast Common Gateway Interface 1

Advantages of FastCGI 1
Long-lived Applications 1
Separating Application and Server 2
FastCGI "Roles" 2
Writing FastCGI Applications 4
Code Structure 5
Initial Environment Variables 5
Per-Request Environment Variables 6
Building FastCGI Applications in C 6
Building FastCGI Applications in Perl 7
Building FastCGI Applications in Tcl 7
Implementation Details 7
The fcgi_stdio Library: I/O Compatibility 9
The fcgi_stdio Library: Binary compatibility 10

2. Developing FastCGI Applications in C 11

The I/O Libraries 11
Code Structure 12
Example 1: TinyFastCGI 12
Example 2: Prime Number Generator 13
Building 15
Memory Leaks 16

3. Developing FastCGI Applications in Perl 17

Getting Started 17
Example: TinyFastCGI 18

4. Developing FastCGI Applications in Tcl 19

Getting Started 19
Example: TinyFastCGI 20

A. FastCGI Reference Pages 21

FCGI_Accept (3) 21
Name 21
Synopsis 21
Description 21
Return Values 22
FCGI_StartFilterData (3) 22
Name 22
Synopsis 22
Description 23
Return Values 23
Example 23
FCGI_SetExitStatus(3) 24
Name 24
Synopsis 24
Description 24


[Top] [Prev] [Next] [Bottom]