tibemsMsgCompletionCallback

Type

Purpose

Asynchronously process a message after sending. This is equivalent to a completion listener in the Java and .NET API.

C Declaration

typedef void (*tibemsMsgCompletionCallback) (
    tibemsMsg msg,
    tibems_status status,
    void* closure );

Parameters

Parameter Description
msg Receive the message object.
status Receive the status of the associated send call.
closure Receive the closure argument, which your program registered in the call to the asynchronous send.

Remarks

To asynchronously send messages, your program can define callback functions of this type, and register them when sending asynchronously (using tibemsMsgProducer_AsyncSend or a related function).

If the send of the message was successful, the status parameter is TIBEMS_OK. If the send is not successful, the status is an error code indicating the type of failure that occurred.

This call is not supported in COBOL.

See Also

tibemsMsgProducer

The section on "Sending Asynchronously" in the TIBCO Enterprise Message Service User’s Guide.