tibemsMsgConsumer_SetMsgListener

Function

Purpose

Set the message callback and closure data of a consumer.

C Declaration

tibems_status tibemsMsgConsumer_SetMsgListener(
    tibemsMsgConsumer msgConsumer,
    tibemsMsgCallback callback,
    void* closure );

Parameters

Parameter Description
msgConsumer Set the listener of this consumer.
callback Use this callback function.
closure Use this closure data.

Remarks

EMS C programs can implement a message listener as a callback function paired with closure data. This call sets these items in a consumer object.

Your program implements the callback, and registers it by calling this function. When a message arrives, the consumer calls the callback.

This call is not supported in COBOL.