http/modules/egiHandler.cpp File Reference


Detailed Description

Embedded Gateway Interface (EGI) handler.

Overview:
The EGI handler implements a very fast in-process CGI scheme.


Functions

int maDefineEgiForm (char *name, MaEgiCb fn)

Function Documentation

int maDefineEgiForm ( char *  name,
MaEgiCb  fn 
)

Synopsis:
Defines a C language EGI form
Overview:
This call links a C procedure to an EGI name. When a URL referencing the form is invoked, the EGI handler will ensure the nominated code is called. E.g. The URL:
        http://localhost/egi/myForm?name=Julie

Could be enabled by calling maDefineEgiForm("myForm", myFormProc);

Parameters:
name Name to publish the form as. This appears in the URL. Names must therefore only contain valid URL characters.
fn C callback function to invoke.
Returns:
Zero if successful. Otherwise it returns an MPR error code.
Stability classification:
Deprecated.
Library:
libcapiModule
See also:
maEspDefineCMethod

© Mbedthis Software LLC, 2003-2006. All rights reserved. Mbedthis is a trademark of Mbedthis Software LLC.