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

Callbacks [Table of Contents] Client-Library Messages

Open Client Client-Library/C Reference Manual

[-] Chapter 2: Topics
[-] Capabilities

Capabilities

Capabilities describe features that a client/server connection supports.

For a list of capabilities, see "ct_capability" .

What are Capabilities Good For?

An application can use capabilities to find out what features are supported by a connection's actual TDS version.

In particular, an application can:

Types of Capabilities

There are two types of capabilities:

Setting and Retrieving Capabilities

Before calling ct_connect to open a connection, an application can:

During the connection process, the client and server negotiate a TDS version level for the connection. The TDS version level determines which capabilities the connection will support.

After a connection is open, an application can:

Setting and Retrieving Multiple Capabilities

Gateway applications often need to set or retrieve all capabilities of a type category with a single call to ct_capability. To do this, an application calls ct_capability with:

Client-Library provides the following macros to enable an application to set, clear, and test bits in a CS_CAP_TYPE structure:

where mask is a pointer to a CS_CAP_TYPE structure and capability is the capability of interest.


Signal Callbacks [Table of Contents] Client-Library Messages