Defining a server-message callback

A server-message callback is a C function that is defined as follows:

CS_RETCODE servermsg_cb(context, connection, message)
 
 CS_CONTEXT       *context;
 CS_CONNECTION    *connection;
 CS_SERVERMSG     *message;

where:

Like other callbacks, a server-message callback is limited as to which Client-Library routines it can call. A server-message callback can call only the following routines:

A server-message callback must return CS_SUCCEED.