TipcMsgUpdateNamedMsgArray update a field containing an array of MSG fields in a message with new data
T_BOOL TipcMsgUpdateNamedMsgArray(msg
,name
,value
,size
) T_IPC_MSGmsg
; T_STRname
; T_MSG *value
; T_INT4size
;
msg
message to update field in
name
name of the field
value
value of the field
size
number of elements in the field
TRUE
if the update was successful, FALSE
otherwise.
If TipcMsgUpdateNamedMsgArray fails, it returns FALSE
and sets the global SmartSockets error number to one of:
msg
, name
or value
is nullmsg
was not a valid messagevalue
was not a valid valueTipcMsgUpdateNamedMsgArray updates a field containing an array of MSG fields in a message, associating that field with a name.
TipcMsgAddNamedMsgArray, TipcMsgGetNamedMsgArray
This example changes the value of the named field "data
":
T_IPC_MSG *data; T_INT4 size; if (!TipcMsgUpdateNamedMsgArray(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 |