TipcMsgUpdateNamedUtf8Array


Name

TipcMsgUpdateNamedUtf8Array — update a named UTF8_ARRAY field in a message with new data

Synopsis

T_BOOL TipcMsgUpdateNamedUtf8Array(msg, name, *value, size) 
T_IPC_MSG msg; 
T_STR name; 
T_STR *value; 
T_INT4 size; 

Arguments

msg — message to update field in

name — name of the field

value — new value of the field

size — number of elements in the field

Return Values

TRUE if the update was successful, FALSE otherwise.

Diagnostics

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

Description

TipcMsgUpdateNamedUtf8Array updates a UTF8_ARRAY field specified by field name.

See Also

TipcMsgAddNamedUtf8Array, TipcMsgGetNamedUtf8Array

Examples

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

T_STR *data; 
T_INT4 size; 
if (!TipcMsgUpdateNamedUtf8Array(msg, "data", data, size)) { 
  return;  /* error */ 
} 

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