ct_recvpassthru

Description

Receive a TDS (Tabular Data Stream) packet from a server.

Syntax

CS_RETCODE ct_recvpassthru (cmd, recvptr)
 
 CS_COMMAND     *cmd;
 CS_VOID               **recvptr;

Parameters

cmd

A pointer to a CS_COMMAND structure.

recvptr

The address of a pointer variable. ct_recvpassthru sets the variable to the address of a buffer containing the most recently received TDS packet. The application is not responsible for allocating this buffer.

Returns

ct_recvpassthru returns the following values:

Table 3-53: ct_recvpassthru return values

Return value

Meaning

CS_PASSTHRU_MORE

Packet received successfully; more packets are available.

CS_PASSTHRU_EOM

Packet received successfully; no more packets are available.

CS_FAIL

The routine failed.

CS_CANCELED

The passthrough operation was canceled.

CS_PENDING

Asynchronous network I/O is in effect. See “Asynchronous programming”.

CS_BUSY

An asynchronous operation is already pending for this connection. See “Asynchronous programming”.

Usage

See also

ct_getloginfo, ct_sendpassthru, ct_setloginfo