srv_alt_xferdata

Description

Send a compute row to a client.

Syntax

CS_RETCODE srv_alt_xferdata(spp, altid)
SRV_PROC     *spp;
CS_INT            altid;

Parameters

spp

A pointer to an internal thread control structure.

altid

The unique identifier for the compute row being sent to the client. The altid is defined using srv_alt_header.

Returns

Table 3-9: Return values (srv_alt_xferdata)

Returns

To indicate

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

Examples

Example 1

#include          <ospublic.h>
/*
 ** Local Prototype.
 */
CS_RETCODE      ex_srv_alt_xferdata PROTOTYPE((
 SRV_PROC        *spp,
 CS_INT          altid
 ));

/* 
 ** EX_SRV_ALTXFERDATA
 **
**     Example routine to send a compute row the the client using
 **     srv_altxferdata.
**
** Arguments:
**     spp     A pointer to an internal thread control structure.
**  altid      The compute row identifier (defined using
 **             srv_alt_header).
 **
 ** Returns:
 **
 **    CS_SUCCEED    The row was sent to the client.
**    CS_FAIL       An error was detected.
 */
 CS_RETCODE          ex_srv_alt_xferdata(spp, altid)
SRV_PROC        *spp;
CS_INT          altid;
{
     /*
     ** Send the compute row to the client.
     */
     if (srv_alt_xferdata(spp, altid) != CS_SUCCEED)
     {
          return (CS_FAIL);
     }
     return (CS_SUCCEED);
}

Usage

See also

srv_alt_bind, srv_alt_header, srv_alt_descfmt