In order to send commands to a server, an application must allocate three types of structures:
A context structure, which defines a particular application “context,” or operating environment
A connection structure, which defines a particular client/server connection
A command structure, which defines a “command space” in which commands are sent to a server
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’s control structures
Through these structures, an application sets up its environment, connects to servers, sends commands, and processes results.
An 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. |
![]() |