http/modules/egiHandler.cpp File Reference

Embedded Gateway Interface (EGI) handler. More...


Functions

int maDefineEgiForm (char *name, MaEgiCb fn)


Detailed Description

Embedded Gateway Interface (EGI) handler.

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

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

© Embedthis Software LLC, 2003-2009. All rights reserved. Embedthis is a trademark of Embedthis Software LLC.