Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Cgi Class Reference

Inheritance diagram for Cgi:

HttpDataHandler List of all members.

Public Member Functions

int send (HttpThreadContext *, ConnectionPtr s, const char *scriptpath, const char *exec, int execute, int onlyHeader=0)

Static Public Member Functions

void buildCGIEnvironmentString (HttpThreadContext *, char *, int=1)
int getTimeout ()
void setTimeout (int)

Static Private Attributes

int cgiTimeout = MYSERVER_SEC(15)

Member Function Documentation

void Cgi::buildCGIEnvironmentString HttpThreadContext td,
char *  cgiEnv,
int  processEnv = 1
[static]
 

Write the string that contain the CGI environment to cgiEnvString. This function is used by other server side protocols too.

Parameters:
td The HTTP thread context.
cgiEnv The zero terminated list of environment string.
processEnv Specify if add current process environment variables too.

int Cgi::getTimeout  )  [static]
 

Get the timeout value for CGI processes.

int Cgi::send HttpThreadContext td,
ConnectionPtr  s,
const char *  scriptpath,
const char *  cgipath,
int  execute,
int  onlyHeader = 0
 

Run the standard CGI and send the result to the client.

Parameters:
td The HTTP thread context.
s A pointer to the connection structure.
scriptpath The script path.
cgipath The CGI handler path as specified by the MIME type.
execute Specify if the script has to be executed.
onlyHeader Specify if send only the HTTP header.

void Cgi::setTimeout int  nt  )  [static]
 

Set the CGI timeout for the new processes.

Parameters:
nt The new timeout value.


Member Data Documentation

int Cgi::cgiTimeout = MYSERVER_SEC(15) [static, private]
 

By default use a timeout of 15 seconds on new processes.


Generated on Wed Nov 8 13:12:47 2006 for MyServer by doxygen 1.3.6