[Top] [Prev] [Next] [Bottom]
[Contents]
SaProcessInputStream
Executes the main event loop
for a Sapphire/Web-generated server application.
#include "SaRnHtml.h"
int SaProcessInputStream();
Arguments
None.
Never returns. Calls SaExit() internally.
Executes the "main event loop" for a Sapphire/Web-generated server application. This call never returns. Internally, it calls SaExit() which eventually will call exit(). This is similar to the main event loop of a X/Motif application (i.e. XtAppMainLoop()). This function always writes:
Content-type: text/html\n\n
to standard out to fulfill the standard application requirement. It then determines which function to call based on argv, argc
, the "QUERY_STRING" environment variable, or standard input. That function will then execute your Data Object requests. If there are HTML templates to "play", SaProcessInputStream will then read those templates and play them. If Sapphire/Web sites are found, then the site will be processed accordingly and generate "population callback" calls. If there are no templates to process, you must generate the return HTML stream. For an example of code, see SaPopulateMsgBox()
.
SaProcessInputStream();
- Note: This call is generated automatically by Sapphire/Web in the Main C file for all server application executables.
See Also
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.