Return the runtime options for the current remote procedure call.
CS_INT srv_rpcoptions(spp)
SRV_PROC *spp;
A pointer to an internal thread control structure.
Returns |
To indicate |
---|---|
A non-zero integer containing the runtime flags for the current RPC. |
The current RPC’s runtime flags. |
0 |
There is no current RPC. Open Server raises an error. |
#include <ospublic.h>
/*
** Local Prototype.
*/
CS_RETCODE ex_srv_rpcoptions PROTOTYPE((
SRV_PROC *spp
));
/*
** EX_SRV_RPCOPTIONS
**
** Example routine to retrieve RPC runtime options
**
** Arguments:
** spp A pointer to an internal thread control structure.
**
** Returns:
**
** CS_SUCCEED
** CS_FAIL
*/
CS_RETCODE ex_srv_rpcoptions(spp)
SRV_PROC *spp;
{
CS_INT options;
if ( (options = srv_rpcoptions(spp)) == 0 )
return(CS_FAIL);
return(CS_SUCCEED);
}
srv_rpcoptions returns a CS_INT value containing the runtime flags for the current remote procedure call.
Currently, the only flag is SRV_PARAMRETURN. If SRV_PARAMRETURN is CS_TRUE, the RPC must be recompiled before it is executed. This is significant only if the RPC is a stored procedure executing on an Adaptive Server Enterprise.
srv_numparams, srv_rpcdb, srv_rpcname, srv_rpcnumber, srv_rpcowner