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

Scgi Class Reference

Inheritance diagram for Scgi:

HttpDataHandler List of all members.

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

int buildScgiEnvironmentString (HttpThreadContext *, char *, char *)
ScgiServerconnect (ScgiContext *, const char *)
Socket getScgiConnection ()
ScgiServerisScgiServerRunning (const char *)
ScgiServerrunScgiServer (ScgiContext *, const char *)
int sendNetString (ScgiContext *, const char *, int)
int sendPostData (ScgiContext *ctx)
int sendResponse (ScgiContext *ctx, int onlyHeader, FiltersChain *)

Static Private Attributes

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

Constructor & Destructor Documentation

Scgi::Scgi  ) 
 

Constructor for the FASTCGI class


Member Function Documentation

int Scgi::buildScgiEnvironmentString HttpThreadContext td,
char *  src,
char *  dest
[private]
 

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

ScgiServer * Scgi::connect ScgiContext con,
const char *  path
[private]
 

Get a connection to the FastCGI server.

Socket Scgi::getScgiConnection  )  [private]
 

int Scgi::getTimeout  )  [static]
 

Return the timeout value.

ScgiServer * Scgi::isScgiServerRunning const char *  path  )  [private]
 

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

int Scgi::load XmlParser  )  [static]
 

Initialize the SCGI protocol implementation

Reimplemented from HttpDataHandler.

ScgiServer * Scgi::runScgiServer ScgiContext context,
const char *  path
[private]
 

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

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

Entry-Point to manage a SCGI request.

Reimplemented from HttpDataHandler.

int Scgi::sendNetString ScgiContext ctx,
const char *  data,
int  len
[private]
 

Send a netstring to the SCGI server.

int Scgi::sendPostData ScgiContext ctx  )  [private]
 

Send the post data to the SCGI server.

int Scgi::sendResponse ScgiContext ctx,
int  onlyHeader,
FiltersChain chain
[private]
 

Send the response to the client.

void Scgi::setTimeout int  ntimeout  )  [static]
 

Set a new timeout.

int Scgi::unLoad  )  [static]
 

Clean the memory and the processes occuped by the FastCGI servers

Reimplemented from HttpDataHandler.


Member Data Documentation

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

Is the scgi initialized?

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

Process server manager.

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

Use a default timeout of 15 seconds.


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