blk_sendtext

Description

A server-side routine, sends text, image, sensitivity, or boundary data in a formatted bulk-copy row obtained from blk_getrow.

Syntax

CS_RETCODE blk_sendtext(blkdesc, row, buffer,
               buflen)
 
 CS_BLKDESC    *blkdesc;
 CS_BLK_ROW    *row;
 CS_BYTE           *buffer;
 CS_INT              buflen;

Parameters

blkdesc

A pointer to the CS_BLKDESC that is serving as a control block for the bulk-copy operation. blk_alloc allocates a CS_BLKDESC structure.

row

A pointer to a CS_BLK_ROW structure. The CS_BLK_ROW structure is a hidden structure that holds formatted bulk-copy rows sent from the client. A gateway application can fill in a CS_BLK_ROW structure with a formatted row by calling the blk_getrow routine.

buffer

A pointer to the space from which blk_sendtext picks up the chunk of text, image, sensitivity, or boundary data.

buflen

The length, in bytes, of the *buffer data space.

Returns

blk_sendtext returns:

Table 4-10: blk_sendtext return values

Returns

Indicates

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

CS_PENDING

Asynchronous network I/O is in effect. For more information, see the “Asynchronous Programming” topics page in the Open Client Client-Library/C Reference Manual.

Usage

See also

blk_init, blk_sendrow, blk_colval, blk_getrow, blk_gettext