cgi/ob_stream.h File Reference

Stream output buffering. More...

#include <stdio.h>
#include <cgi/cgi.h>

Functions

void ob_enable (struct s_cgi_context *ctx)
 Enable output buffering.
void ob_end_flush (struct s_cgi_context *ctx)
 Disable output buffering, flush contents.
void ob_end_discard (struct s_cgi_context *ctx)
 Disable output buffering, discard contents.


Detailed Description

Stream output buffering.

Author:
Vladimir Pavluk, 2006-2007
With output buffering enabled you can start data output wherever you want in the script. Data won't be actually sent until you disable output buffering, so you can for example output something, and then set cookie or change some HTTP header.

Function Documentation

void ob_enable ( t_cgi_context ctx  ) 

Enable output buffering.

Enables output buffering for given CGI context.

Parameters:
ctx pointer to existing CGI context (t_cgi_context *).
See also:
cgi_context_create(FCGX_Request *)

cgi_context_free(t_cgi_context *)

ob_end_flush(t_cgi_context *)

ob_end_discard(t_cgi_context *)

void ob_end_discard ( t_cgi_context ctx  ) 

Disable output buffering, discard contents.

Disables output buffering and clears contents of the output buffer.

Parameters:
ctx pointer to existing CGI context (t_cgi_context *).
See also:
cgi_context_create(FCGX_Request *)

cgi_context_free(t_cgi_context *)

ob_enable(t_cgi_context *)

ob_end_flush(t_cgi_context *)

void ob_end_flush ( t_cgi_context ctx  ) 

Disable output buffering, flush contents.

Disables output buffering and flush contents of the output buffer.

Parameters:
ctx pointer to existing CGI context (t_cgi_context *).
See also:
cgi_context_create(FCGX_Request *)

cgi_context_free(t_cgi_context *)

ob_enable(t_cgi_context *)

ob_end_discard(t_cgi_context *)


Generated on Tue Jun 17 17:31:10 2008 for CGI Library by  doxygen 1.5.5