Public Member Functions

base_cgi::CGIFast Class Reference

Fast cgi server class. More...

#include <libppbase/base_cgi/CGIFast.h>

Inheritance diagram for base_cgi::CGIFast:
base_cgi::CGI

List of all members.

Public Member Functions

 CGIFast (const base::String &program)
 Constructor.
void flush ()
 Flushes the output stream.
const char * getenv (const char *var, const char *defval=NULL) const
 Gets an environment variable that was set by the http server.
void init (FCGX_Request *request)
 Initializes the object and reads a http request from the input stream by calling either initGet or initPost.
void out (const char *s, size_t len=base::String::npos)
 Writes data (mostly html) to the output stream.

Detailed Description

Fast cgi server class.

Author:
Christoph Schwarz
Version:
$Id: CGIFast.h 21 2010-09-05 04:18:17Z cschwarz1 $

Constructor & Destructor Documentation

base_cgi::CGIFast::CGIFast ( const base::String program  ) 

Constructor.

Parameters:
program program name, may be full path

Member Function Documentation

const char* base_cgi::CGIFast::getenv ( const char *  var,
const char *  defval = NULL 
) const [virtual]

Gets an environment variable that was set by the http server.

Parameters:
var the variable name
defval value to return if the variable does not exist
Returns:
the variable value

Implements base_cgi::CGI.

void base_cgi::CGIFast::init ( FCGX_Request *  request  ) 

Initializes the object and reads a http request from the input stream by calling either initGet or initPost.

Parameters:
request the http request
void base_cgi::CGIFast::out ( const char *  s,
size_t  len = base::String::npos 
) [virtual]

Writes data (mostly html) to the output stream.

Parameters:
s data to write
len number of bytes to write

Implements base_cgi::CGI.


The documentation for this class was generated from the following file: