In addition to common routines, CS-Library provides data structures useful to both Open Client and Open Server applications. Among these data structures is a CS_CONTEXT structure, which contains information about an application programming environment, or “context.”
An Open Server application programmer can tailor an application’s behavior by setting global application attributes stored in this structure. “Properties” discusses this feature in detail.
Other CS-Library structures contain information about data passed between Open Client and Open Server applications.
Because Client-Library and Server-Library programs require
a context structure, which can only be allocated using CS-Library, all Client-Library and Server-Library
programs must include at least two calls to CS-Library—one
to allocate a CS_CONTEXT and
one to deallocate it.