home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 March
/
PCWK0397.iso
/
novell
/
webserv3
/
nws30.exe
/
DISK1
/
WEB
/
SAMPLES
/
CGIAPP
/
RCGI.H
< prev
Wrap
C/C++ Source or Header
|
1995-10-20
|
2KB
|
37 lines
#include <stdio.h>
#include <process.h>
/************************************************************************/
/************ VARIABLE PROVIDED BY THE RCGI INTERFACE *******************/
/************************************************************************/
extern int env_count; /** Contains the no. of env variables **/
extern char *env[]; /** Contains the environment string that **/
/** was received from the web server **/
extern char *input; /** Contains the stdin that was received from the **/
/** web server **/
extern char *cmd_line; /** Contains the command line that was received **/
/** from the web server **/
int server_port = 8003; /*** Set this to the default port that you need **/
/************************************************************************/
/************ FUNCTIONS PROVIDED BY THE RCGI INTERFACE *******************/
/************************************************************************/
extern int rcgi_main(char *port, int (*fptr)()); /** Main RCGI processor **/
/**** "port" specifies the port on which this server should listen **/
/**** "fptr" is a pointer to a function that does all the **/
/**** extension's work, including sending back formated data **/
extern int rcgi_cleanup(); /** Use this to cleanup the RCGI part of the **/
/** code when you are done **/
extern int rcgi_sendreply(char *buf); /** Use this to send the **/
/** NULL terminated buf to the web server **/
extern int rcgi_sendheader();/*Use this to send the generic plain text header*/