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

FastCgi Class Reference

Inheritance diagram for FastCgi:

HttpDataHandler List of all members.

Public Member Functions

 FastCgi ()
virtual int send (HttpThreadContext *td, ConnectionPtr connection, const char *scriptpath, const char *cgipath, int execute=0, int onlyHeader=0)

Static Public Member Functions

int getTimeout ()
int load (XmlParser *)
void setTimeout (int)
int unLoad ()

Private Member Functions

int buildFASTCGIEnvironmentString (HttpThreadContext *, char *, char *)
FastCgiServerconnect (FcgiContext *, const char *)
void generateFcgiHeader (FcgiHeader &, int, int, int)
Socket getFcgiConnection ()
FastCgiServerisFcgiServerRunning (const char *)
FastCgiServerrunFcgiServer (FcgiContext *, const char *)
int sendFcgiBody (FcgiContext *con, char *buffer, int len, int type, int id)

Static Private Attributes

int initialized = 0
ProcessServerManagerprocessServerManager = 0
int timeout = MYSERVER_SEC(15)

Constructor & Destructor Documentation

FastCgi::FastCgi  ) 
 

Constructor for the FASTCGI class


Member Function Documentation

int FastCgi::buildFASTCGIEnvironmentString HttpThreadContext ,
char *  src,
char *  dest
[private]
 

Trasform from a standard environment string to the FastCGI environment string.

FastCgiServer * FastCgi::connect FcgiContext con,
const char *  path
[private]
 

Get a connection to the FastCGI server.

void FastCgi::generateFcgiHeader FcgiHeader header,
int  iType,
int  iRequestId,
int  iContentLength
[private]
 

Fill the FcgiHeader structure.

Socket FastCgi::getFcgiConnection  )  [private]
 

int FastCgi::getTimeout  )  [static]
 

Return the timeout value.

FastCgiServer * FastCgi::isFcgiServerRunning const char *  path  )  [private]
 

Return the the running server specified by path. If the server is not running returns 0.

int FastCgi::load XmlParser  )  [static]
 

Initialize the FastCGI protocol implementation

Reimplemented from HttpDataHandler.

FastCgiServer * FastCgi::runFcgiServer FcgiContext context,
const char *  path
[private]
 

Run the FastCGI server. If the path starts with a @ character, the path is handled as a remote server.

int FastCgi::send HttpThreadContext td,
ConnectionPtr  connection,
const char *  scriptpath,
const char *  cgipath,
int  execute = 0,
int  onlyHeader = 0
[virtual]
 

Entry-Point to manage a FastCGI request.

Reimplemented from HttpDataHandler.

int FastCgi::sendFcgiBody FcgiContext con,
char *  buffer,
int  len,
int  type,
int  id
[private]
 

Send the buffer content over the FastCGI connection Return non-zero on errors.

void FastCgi::setTimeout int  ntimeout  )  [static]
 

Set a new timeout.

int FastCgi::unLoad  )  [static]
 

Clean the memory and the processes occuped by the FastCGI servers

Reimplemented from HttpDataHandler.


Member Data Documentation

int FastCgi::initialized = 0 [static, private]
 

Is the fastcgi initialized?

ProcessServerManager * FastCgi::processServerManager = 0 [static, private]
 

Process server manager.

int FastCgi::timeout = MYSERVER_SEC(15) [static, private]
 

Use a default timeout of 15 seconds.


Generated on Thu May 1 12:41:00 2008 for MyServer by  doxygen 1.3.9.1