TipcMsgGetCorrelationId get the correlation identifier property of a message
T_BOOL TipcMsgGetCorrelationId(msg, correlation_id_return
) T_IPC_MSGmsg
; T_STR *correlation_id_return
;
msg
message to get identifier from
correlation_id_return
storage for identifier
TRUE
if the identifier was successfully retrieved from the message, FALSE
otherwise.
If TipcMsgGetCorrelationId fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcMsgGetCorrelationId gets the correlation identifier property of a message. The identifier property is a string whose meaning depends on how the message is being used. Applications of messages are free to use the correlation identifier for any purpose.
If TipcMsgGetCorrelationId returns FALSE
, it does not store a value in correlation_id_return
.
Do not modify the value stored in correlation_id_return
. It points directly into an internal data structure.
TipcMsgSetCorrelationId, TipcMsgGenerateMessageId, TipcMsgGetMessageId
This example prints the correlation identifier of a message:
T_STR id; if (!TipcMsgGetCorrelationId(msg, &id)) {return
; /* error */
} TutOut("msg had identifier %s\n", id ? id : "<NULL>");
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |