Use pthread_mutexes for locking the accept() and data.
[catagits/fcgi2.git] / perl / FCGI.pm
CommitLineData
0074e702 1# $Id: FCGI.pm,v 1.2 1999/03/08 16:26:03 skimo Exp $
1b64d24d 2
3package FCGI;
4
5require Exporter;
6require DynaLoader;
7
8@ISA = qw(Exporter DynaLoader);
9# Items to export into callers namespace by default. Note: do not export
10# names by default without a very good reason. Use EXPORT_OK instead.
11# Do not simply export all your public functions/methods/constants.
12@EXPORT = qw(
13
14);
15
0074e702 16$VERSION = '0.45';
1b64d24d 17
18bootstrap FCGI;
19
20# Preloaded methods go here.
21
22# Autoload methods go after __END__, and are processed by the autosplit program.
23
24sub PRINTF {
25 shift->PRINT(sprintf(shift, @_));
26}
27
281;
29
30=head1 NAME
31
32FCGI - Fast CGI module
33
34=head1 SYNOPSIS
35
36 use FCGI;
37
38 $count = 0;
39 while(FCGI::accept() >= 0) {
40 print("Content-type: text/html\r\n\r\n", ++$count);
41 }
42
43=head1 DESCRIPTION
44
45Functions:
46
47=over 4
48
49=item FCGI::accept()
50
51Accepts a connection. Returns 0 on success.
52If a connection has been accepted before, the old
53one will be finished first.
54
55=item FCGI::finish()
56
57Finishes accepted connection.
58
59=item FCGI::flush()
60
61Flushes accepted connection.
62
63=item FCGI::set_exit_status(status)
64
65Sets the exit status that finish returns to the server.
66
67=item FCGI::start_filter_data()
68
69Does anyone use this function ?
70
71=back
72
73=head1 AUTHOR
74
75Sven Verdoolaege <skimo@kotnet.org>
76
77=cut
78
79__END__