TibrvMsgCallback::onMsg()
Method
Declaration
virtual void onMsg
(TibrvListener* listener, TibrvMsg& msg) = 0;
Purpose
Process inbound messages (listener events).
Remarks
Implement this method to process inbound messages.
Parameter |
Description |
|
This parameter receives the listener event. |
|
This parameter receives the inbound message. |
CM Label Information
The callback method for certified delivery messages can use certified delivery (CM) label information to discriminate among these situations:
• | If TibrvCmMsg::getSender() returns status code TIBRV_NOT_FOUND, then the message uses the reliable protocol (that is, it was sent from an ordinary transport). |
• | If TibrvCmMsg::getSender() returns a valid sender name, then the message uses the certified delivery protocol (that is, it is a labeled message, sent from a CM transport). |