tibemsMsgConsumer_GetMsgListener

Function

Purpose

Get the message callback and closure data from a consumer.

C Declaration

tibems_status tibemsMsgConsumer_GetMsgListener(
    tibemsMsgConsumer msgConsumer,
    tibemsMsgCallback* callbackPtr,
    void** closure );

Parameters

Parameter Description
msgConsumer Get the listener from this consumer.
callbackPtr Store a pointer to the callback in this location.
closure Store a pointer to the closure data in this location. This pointer is passed into the message listener callback.

Remarks

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

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

This call is not supported in COBOL.