Using Client-Library functions  Steps in a simple program

Chapter 1: Open ClientConnect Processing

Basic control structures

In order to send commands to a server, an application must allocate three types of structures:

An application allocates these structures by calling the functions cs_ctx_alloc, ct_con_alloc, and ct_cmd_alloc.

The relationship between these control structures is illustrated in Figure 1-4.

Figure 1-4: Client-Library control structures

Through these structures, an application sets up its environment, connects to servers, sends commands, and processes results.

NoteAn Open ClientConnect application is restricted to one context per application. This differs from applications written in other versions of Client-Library, which support multiple context structures.





Copyright © 2005. Sybase Inc. All rights reserved. Steps in a simple program

View this book as PDF