Sun Java System Web Server 6.1 SP6 NSAPI Programmer's Guide


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 SAF by identifying it in the pblock.


int func_exec(pblock *pb, Session *sn, Request *rq);


The value returned by the executed function, or the constant REQ_ABORTED if no function was executed.


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