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

The table describes the 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.