TipcMsgSetPriority set the priority of a message
msg
message to set priority for
priority
message priority
TRUE
if the priority was successfully set for the message, FALSE
otherwise.
If TipcMsgSetPriority fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcMsgSetPriority sets the priority of a message. Message priorities are used by TipcConnRead to queue incoming messages in priority order. TipcMsgSetPriority overwrites the default value of the priority property set by TipcMtSetPriority. See TipcMsgGetPriority for more information on message priorities.
Setting message priorities on GMD or load-balanced (LB) messages is not recommended. GMD and LB rely on high sequence numbers for correct functioning, and unexpected behavior may occur if such messages are received out of order due to the use of message priorities.
TipcMsgGetPriority, TipcMtSetPriority
This example sets the priority of a message to 2
:
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |