User, Persistent CGI
| File | Size | Last modified | Description | Requirements and optionals | |
|---|---|---|---|---|---|
|
|
18 KB | 2005-Dec-15 | Source | ISO C90 | ISO C++98 |
This package supports CGI programs running as normal users (not the webserver's), and potentially running persistently. It's a bit experimental.
There are three parts:
The first part is a CGI program which simply connects to a UNIX-domain stream socket, sends the CGI input data through it and awaits a response.
A C/C++ library allows a user program to set up such a socket, run persistently, and receive and respond to the data for each CGI interaction distinctly and concurrently. This program can run with an identity and permisions independent of the web server.
A second program is supplied which uses the library to run ordinary CGI programs.
Note that the Apache HTTP server has a mod_cgid module which might provide this functionality, but it needs investigating.
<upcgi.h>
<upcgi.hh>