The correlation ID property is typically used for a message ID or for any application-specific string. You can use this property for any purpose.
TipcMsgSetCorrelationID. For example:
T_STR id; if (!TipcMsgGetMessageId(request_msg, &id)) {/* error */
} if (!TipcMsgSetCorrelationId(reply_msg, id)) {/* error */
}
TipcMsgGetMessageId. For example:
T_STR id;
if (!TipcMsgGetCorrelationId(msg, &id)) {
/* error */
}
TutOut("msg had identifier %s\n", id ? id : "<NULL>");
TIBCO SmartSockets™ User’s Guide Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |