NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
147
See also
MALLOC, CALLOC, REALLOC, STRDUP, PERM_MALLOC, PERM_FREE,
PERM_REALLOC, PERM_STRDUP
func_exec
The
func_exec
function executes the function named by the
fn
entry in a specified
pblock
. If the function name is not found, it logs the error and returns
REQ_ABORTED
.
You can use this function to execute a built-in server application function (SAF) by
identifying it in the
pblock
.
Syntax
int func_exec(pblock *pb, Session *sn, Request *rq);
Returns
The value returned by the executed function or the constant
REQ_ABORTED
if no
function was executed.
Parameters
pblock pb
is the
pblock
containing the function name (fn) and parameters.
Session *sn
is the Session.
Request *rq
is the Request.
The Session and Request parameters are the same as the ones passed into your
SAF.
See also
log_error
func_find
The
func_find
function returns a pointer to the function specified by
name
. If the
function does not exist, it returns NULL.
Syntax
FuncPtr func_find(char *name);
Returns
A pointer to the chosen function, suitable for dereferencing or NULL if the function
could not be found.
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...