Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.31 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.31 KB

QFCgi

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.

Usage

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)
  1. Include the qfcgi.h header.
  2. Create an instance of the QFCgi class.
  3. Configure the listener. There are several listener available.
  4. Start the FastCGI system.
  5. Wait for incoming requests.

Have a look into the example directory where you can get through some real examples.

Prerequisites

Developed and tested against Qt V4.8.

Installation

CMake is used as the build system:

mkdir build
cd build
cmake ..
make
make install

Licence

See LICENSE file.