CS-Library defines a single control structure, CS_CONTEXT.
A CS_CONTEXT structure stores configuration information that describes a particular programming context. An application must allocate a CS_CONTEXT structure before calling any other Client-Library, Server-Library, or CS-Library routine.
An application allocates a CS_CONTEXT structure by calling cs_ctx_alloc or cs_ctx_global.
An application can customize a CS_CONTEXT by changing the values of context properties. The following routines change the values of context properties:
The CS-Library routine cs_config (after the context has been allocated)
The Client-Library routine ct_config (after the Client-Library routine ct_init has been called for the context)
The Server-Library routine srv_props (after calling the Server-Library routine srv_version for the context)
An application should deallocate all existing context structures before exiting. An application deallocates a CS_CONTEXT structure by calling cs_ctx_drop.