firstapp.c calls ct_config to set the CS_MAX_CONNECT context property. This property specifies the maximum number of connections for a context.
Client-Library context properties serve one of two purposes:
They define aspects of a context’s behavior.
CS_MAX_CONNECT is an example of this category.
They define default properties for connections created from the context.
The CS_NETIO property is an example of this category. If a context CS_NETIO property is set to CS_SYNC_IO, to indicate synchronous connections, then any connection structure allocated within the context will be synchronous. ct_con_props can be called to change the value of CS_NETIO for a specific connection after it has been allocated.
For a complete list of Client-Library context properties, see the “Properties” topics page in the Open Client Client-Library/C Reference Manual.
Applications that are not multithreaded can call ct_config to change a context’s properties at any time during the program’s execution. Multithreaded applications must set context properties in single-threaded, start-up code or limit all access to a context and its child connections to a single thread. See the “Multithreaded Programming” topics page in the Open Client Client-Library/C Reference Manual.
When an application calls ct_config to change a context property, property values for existing connections do not change, but connections allocated after the ct_config call will pick up the new property values.