TipcMsgUpdateNamedUtf8Ptr


Name

TipcMsgUpdateNamedUtf8Ptr — update a named UTF8 pointer field in a message with new data

Synopsis

T_BOOL TipcMsgUpdateNamedUtf8Ptr(msg, name, value, *field_return) 
T_IPC_MSG msg; 
T_STR name; 
T_STR value; 
T_IPC_MSG_FIELD *field_return; 

Arguments

msg — message to update field in

name — name of the field

value — new value of the field

field_return — optional value to return field (use NULL if not needed)

Return Values

TRUE if the update was successful, FALSE otherwise.

Diagnostics

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

Description

TipcMsgUpdateNamedUtf8Ptr updates a UTF8 pointer field specified by field name.

See Also

TipcMsgAddNamedUtf8Ptr

Examples

This example changes the value of the named field "data":

T_STR data;  
T_STR foo; 
 
if (!TipcMsgUpdateNamedUtf8Ptr(msg, "data", "foo", field_return))  
return;  /* error */ 
} 

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