TipcMsgSetSender set the sender of a message
msg
message to set sender for
sender
message sender
TRUE
if the sender was successfully set for the message, FALSE
otherwise.
If TipcMsgSetSender fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcMsgSetSender sets the sender property of a message. The sender 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. TipcMsgSetSender makes a copy of the message sender.
Messages sent with publish-subscribe between RTclients by RTserver, for example, use a subject name for the message sender and destination.
RTclients do not have to explicitly set the sender property of a message sent to RTserver; the functions TipcSrvMsgSend, TipcSrvMsgWrite, and TipcSrvMsgWriteVa all set the sender property of their messages to the unique subject of the process (which is stored in the option Unique_Subject).
TipcMsgGetSender, TipcMsgSetDest
This example sets the sender 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 |