The following figure shows the interaction between a Sybase Open Client CT-Library API and DirectConnect.
Figure 5-3: CT-Library client API example
The CT-Library client API processing flow includes the following steps:
When a CT-Library application issues a request, it uses the ct_connect call to initiate a connect event to a specific DirectConnect access service.
The CT-Library API executes the request using the ct_command and ct_send calls. This initiates a language event in the DirectConnect server.
The CT-Library API uses ct_fetch to return the requested results to the client application.
The CT-Library API terminates the request with ct_close. This call initiates a disconnect event in the DirectConnect server.
Procedure calls for the CT-Library API are described in the Sybase Open Client Client-Library/C Reference Manual.
DirectConnect does not support the use of text or image
pointers. Consequently, ct_data, ct_get_data,
and ct_put_data, when used with text or image
pointers, are not supported.