An application calls ct_callback to install message callbacks.
Client-Library stores callbacks in the CS_CONNECTION and CS_CONTEXT structures. Because of this, when a Client-Library error occurs that makes a CS_CONNECTION or CS_CONTEXT structure unusable, Client-Library cannot call the client message callback. However, the routine that caused the error still returns CS_FAIL.
For more information about using callbacks to handle Client-Library and server messages, see “Callbacks” and the ct_callback reference page.