TipcMsgSetReplyTo


Name

TipcMsgSetReplyTo — set the reply to destination property of a message

Synopsis

T_BOOL TipcMsgSetReplyTo(msg, reply_to_dest) 
T_IPC_MSG msg; 
T_STR reply_to_dest; 

Arguments

msg — message to set reply to destination for

reply_to_dest — message reply to destination

Return Values

TRUE if the reply to destination was successfully set for the message, FALSE otherwise.

Diagnostics

If TipcMsgSetReplyTo fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

TipcMsgSetReplyTo sets the reply to destination property of a message. The reply to destination property is a string representing a subject where a reply to the message should be sent.

Caution

TipcMsgSetReplyTo does not detect errors in reply_to_dest, such as misspelled subject names.

See Also

TipcMsgGetHeaderStrEncode

Examples

This example sets the reply to destination property of a message to reply_subject:

if (!TipcMsgSetReplyTo(msg, "reply_subject")) { 
  return;  /* error */ 
} 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com