Handles

An application needs to call Open ClientConnect functions to allocate, use, and deallocate most handles, but does not need to access them directly.

Client-Library uses handles at three levels. Each handle defines and manages a particular environment. Each type of handle can have certain properties, described below.

NoteMost Client-Library functions include a handle argument. An application must allocate these handles before using them as arguments.

Types of handles

The following handles are used with Client-Library:

Routines that affect handles

Table 2-12 lists the routines that allocate, use, and deallocate handles.

Table 2-12: Routines that manipulate hidden structures

Structure

Allocated and used by

CONTEXT

CSBCTXALLOC, CTBCONFIG, CSBCONFIG, CSBCTXDROP

CONNECTION

CTBCONALLOC, CTBCONPROPS, CTBCONDROP

COMMAND

CTBCMDALLOC, CTBCMDPROPS, CTBCMDDROP