TipcMsgSetDest set the destination of a message
msg
message to set destination for
dest
message destination
TRUE
if the destination was successfully set for the message, FALSE
otherwise.
If TipcMsgSetDest fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcMsgSetDest sets the destination property of a message. The destination property is a string whose meaning depends on how the message is being used. Other applications of messages are free to use the sender and destination for another purpose. Message sender and destination properties can be null if they are not needed. TipcMsgSetDest makes a copy of the message destination.
Messages sent with publish-subscribe between RTclients by RTserver, for example, use a subject name for the message sender and destination.
TipcMsgSetDest does not detect errors in dest
(such as misspelled subject names).
TipcMsgGetDest, TipcMsgSetType
This example sets the destination property of a message to _all
:
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |