Inheritance diagram for FastCgi:
Public Member Functions | |
FastCgi () | |
int | send (HttpThreadContext *td, ConnectionPtr connection, const char *scriptpath, const char *cgipath, int execute, int onlyHeader) |
Static Public Member Functions | |
int | getInitialPort () |
int | getMaxFcgiServers () |
int | getTimeout () |
int | load (XmlParser *) |
void | setInitialPort (int) |
void | setMaxFcgiServers (int) |
void | setTimeout (int) |
int | unload () |
Private Member Functions | |
int | buildFASTCGIEnvironmentString (HttpThreadContext *, char *, char *) |
FastCgiServersList * | fcgiConnect (FcgiContext *, const char *) |
int | fcgiConnectSocket (FcgiContext *, FastCgiServersList *) |
void | generateFcgiHeader (FcgiHeader &, int,int, int) |
Socket | getFcgiConnection () |
FastCgiServersList * | isFcgiServerRunning (const char *) |
bool | isRemoteServer (const char *) |
FastCgiServersList * | runFcgiServer (FcgiContext *, const char *) |
int | runLocalServer (FastCgiServersList *server, const char *path, int port) |
int | sendFcgiBody (FcgiContext *con, char *buffer, int len, int type, int id) |
Static Private Attributes | |
int | initialized = 0 |
int | initialPort = 3333 |
int | maxFcgiServers = 25 |
HashMap< string, FastCgiServersList * > | serversList |
Mutex | serversMutex |
int | timeout = MYSERVER_SEC(15) |
|
Constructor for the FASTCGI class |
|
Trasform from a standard environment string to the FastCGI environment string. |
|
Get a connection to the FastCGI server. |
|
Get a client socket in the fCGI context structure |
|
Fill the FcgiHeader structure. |
|
|
|
Get the initial port. |
|
Get the max number of servers that can be executed. |
|
Return the timeout value. |
|
Return the the running server specified by path. If the server is not running returns 0. |
|
Return if the location is a remote one. A remote location starts with a @.
|
|
Initialize the FastCGI protocol implementation Reimplemented from HttpDataHandler. |
|
Run the FastCGI server. If the path starts with a @ character, the path is handled as a remote server. |
|
Start the server on the specified port. Return zero on success. |
|
Entry-Point to manage a FastCGI request. |
|
Send the buffer content over the FastCGI connection Return non-zero on errors. |
|
Set the initial port for new servers. |
|
Set a new value for the max number of servers that can be executed. |
|
Set a new timeout. |
|
Clean the memory and the processes occuped by the FastCGI servers Reimplemented from HttpDataHandler. |
|
Is the fastcgi initialized? |
|
By default start binding ports from 3333. |
|
By default allows 25 servers. |
|
Running servers. |
|
Mutex used to access fastCGI servers. |
|
Use a default timeout of 15 seconds. |