Context properties are stored in a CS-Library CS_CONTEXT structure. An application sets or retrieves context properties using the CS-Library routine cs_config. See the Open Client and Open Server Common Libraries Reference Manual for information on this routine.
There are three kinds of context properties:
Context properties specific to CS-Library
cs_config sets and retrieves the values of CS-Library-specific context properties. With the exception of CS_LOC_PROP, properties set through cs_config affect only CS-Library. CS-Library-specific context properties are listed on the manual page for cs_config in the Open Client and Open Server Common Libraries Reference Manual.
Context properties specific to Client-Library
ct_config sets and retrieves the values of Client-Library-specific context properties. Properties set through ct_config affect only Client-Library. See the Open Client Client-Library/C Reference Manual.
Context properties specific to Server-Library
srv_props sets and retrieves the values of Server-Library-specific context properties. Properties set through srv_props affect only Server-Library.
The context properties that an Open Server application can set include:
The routine Open Server calls when it detects a CS-Library error.
Localization information, including the Open Server’s national language, character set, and sort order.
The location of a pointer to application data space. This property allows applications to associate control information with Open Server’s context. Open Server does not use this pointer; it is provided for the convenience of Open Server application programmers.
These context properties can be both set and retrieved through the cs_config routine. See the Open Client and Open Server Common Libraries Reference Manual.