FastCGI implementation for the Qt project. The library utilizes the Qt event pattern, it runs completely asynchronous. It hides (most) of the FastCGI specification behind a simple interface.
A common pattern can look like this:
#include <qfcgi.h> // (1)
QFCgi *fcgi = new QFCgi; // (2)
fcgi->configureListen(QHostAddress::Any, 9000); // (3)
fcgi->start(); // (4)
connect(fcgi, SIGNAL(newRequest(QFCgiRequest*)), ...); // (5)
- Include the
qfcgi.h
header. - Create an instance of the
QFCgi
class. - Configure the listener. There are several listener available.
- Start the FastCGI system.
- Wait for incoming requests.
Have a look into the example directory where you can get through some real examples.
Developed and tested against Qt V4.8.
CMake is used as the build system:
mkdir build
cd build
cmake ..
make
make install
See LICENSE file.