Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Return values [Table of Contents] See also

Open Client Client-Library/C Reference Manual

[-] Chapter 3 Routines
[-] ct_diag
[-] Usage

Usage

Summary of ct_diag parameters

Value of operation

Resulting action

type is

index is

buffer is

CS_INIT

Initializes inline error handling.

CS_UNUSED

CS_UNUSED

NULL

CS_MSGLIMIT

Sets the maximum number of messages to store.

CS_CLIENTMSG_TYPE to limit Client-Library messages only.

CS_SERVERMSG_TYPE to limit server messages only.

CS_ALLMSG_TYPE to limit the total number of Client-Library and server messages combined.

CS_UNUSED

A pointer to an integer value.

CS_CLEAR

Clears message information for this connection.

If buffer is not NULL and type is not CS_ALLMSG_TYPE, ct_diag also clears the *buffer structure by initializing it with blanks and/or NULLs, as appropriate.

Any valid type value.

If type is CS_CLIENTMSG_TYPE, ct_diag clears Client-Library messages only.

If type is CS_SERVERMSG_TYPE, ct_diag clears server messages only.

If type has any other valid value, ct_diag clears both Client-Library and server messages.

CS_UNUSED

A pointer to a structure whose type is defined by type, or NULL.

CS_GET

Retrieves a specific message.

Any valid type value except CS_ALLMSG_TYPE.

If type is CS_CLIENTMSG_TYPE, a Client-Library message is retrieved into a CS_CLIENTMSG structure.

If type is CS_SERVERMSG_TYPE, a server message is retrieved into a CS_SERVERMSG structure.

If type has any other valid value, then either a Client-Library or server message is retrieved.

The one-based index of the message to retrieve.

A pointer to a structure whose type is defined by type.

CS_STATUS

Returns the current number of stored messages.

CS_CLIENTMSG_TYPE to retrieve the number of Client-Library messages.

CS_SERVERMSG_TYPE to retrieve the number of server messages.

CS_ALLMSG_TYPE to retrieve the total number of Client-Library and server messages combined.

CS_UNUSED

A pointer to an integer variable.

CS_EED_CMD

Sets *buffer to the address of the CS_COMMAND structure containing extended error data.

CS_SERVERMSG_TYPE

The one-based index of the message for which extended error data is available.

A pointer to a pointer variable.

Initializing inline error handling

Clearing messages

Retrieving messages

Limiting messages

Retrieving the number of messages

Getting the CS_COMMAND for extended error data

Sequenced messages and ct_diag


Return values [Table of Contents] See also