ct_sendpassthru

Description

Send a Tabular Data Stream (TDS) packet to a server.

Syntax

CS_RETCODE ct_sendpassthru (cmd, sendptr)
 
CS_COMMAND     *cmd;
CS_VOID               *sendptr;

Parameters

cmd

A pointer to a CS_COMMAND structure.

sendptr

A pointer to a buffer containing the TDS packet to be sent to the server.

Returns

ct_sendpassthru returns the following values:

Table 3-57: ct_sendpassthru return values

Return value

Meaning

CS_PASSTHRU_MORE

Packet sent successfully; more packets are available.

CS_PASSTHRU_EOM

Packet sent successfully; no more packets are available.

CS_FAIL

The routine failed.

CS_CANCELLED

The routine was cancelled.

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_recvpassthru, ct_setloginfo