srv_get_data

Description

Read a text, unitext, or image parameter stream from a client, in chunks.

Syntax

CS_RETCODE srv_get_data(spp, bp, buflen, outlenp)
SRV_PROC    *spp;
CS_BYTE       *bp;
CS_INT           buflen;
CS_INT          *outlenp;

Parameters

spp

A pointer to an internal thread control structure.

bp

A pointer to a buffer where the data from the client is placed.

buflen

The size of the *bp pointer, indicating how many bytes are transferred in each chunk.

outlenp

The number of the bytes read into the *bp buffer is returned here.

Returns

Table 3-50: Return values (srv_get_data)

Returns

To indicate

CS_SUCCEED

srv_get_data ran successfully, more data is pending.

CS_FAIL

The routine failed.

CS_END_DATA

srv_get_data has completed reading the entire text, unitext, or image parameter.