srv_rpcoptions

Description

Return the runtime options for the current remote procedure call.

Syntax

CS_INT          srv_rpcoptions(spp)
SRV_PROC        *spp;

Parameters

spp

A pointer to an internal thread control structure.

Returns

Table 3-110:  Return values (srv_rpcoptions)

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.

Examples

Example 1

#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);
}

Usage

See also

srv_numparams, srv_rpcdb, srv_rpcname, srv_rpcnumber, srv_rpcowner