srv_get_data

Reads 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 – size of the *bp pointer. This indicates how many bytes are transferred in each chunk.

  • outlenp – an output parameter, outlenp contains the number of bytes read into the *bp buffer.

Return Values

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