Sun Java System Web Proxy Server 4.0.11 NSAPI Developer'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, the func_exec function logs the error and returns REQ_ABORTED.

You can use this function to execute a built-in Server Application Function (SAF) by identifying the SAF 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 identifies the Session structure.

Request *rq identifies the Request structure.

The Session and Request parameters are the same as the parameters passed into your SAF.

See Also