Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

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, 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.

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 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

log_error