Defining a client-message callback

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

CS_RETCODE clientmsg_cb(context, connection, message)
 
 CS_CONTEXT       *context;
 CS_CONNECTION    *connection;
 CS_CLIENTMSG     *message;

where:

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

A client-message callback must return one of the following return codes: