topical media & game development

talk show tell print

lib-ch-example-ref-cgi-setBuffer.cgi / cgi



  #!/bin/ch
  /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
  include <cgi.h>
  
  int main() {
    class CResponse Response;
    bool buffer_def, buffer_cur;
  
    //Get the default value
    buffer_def = Response.getBuffer();
    //Set to no buffer
    Response.setBuffer(true);
    //Get the current value
    buffer_cur = Response.getBuffer();
  
    Response.begin();
    Response.title("Test of Response.setBuffer and Response.getBuffer");
    printf("<H1> Test of Response.setBuffer and Response.getBuffer </H1> 
\n"); printf("Default Buffering is \%s <br>\n", buffer_def ? "True" : "False"); printf("Current Buffering is \%s <br>\n", buffer_cur ? "True" : "False"); Response.end(); }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.