TipcMsgUpdateNamedUnknown


Name

TipcMsgUpdateNamedUnknown — update a field with an unknown or non-existent value in a message with new data

Synopsis

T_BOOL TipcMsgUpdateNamedUnknown(msg, name, type) 
T_IPC_MSG msg; 
T_STR name; 
T_IPC_FT type; 

Arguments

msg — message to append field to

name — name of the field

type — type of the field (such as T_IPC_FT_INT2, T_IPC_FT_INT4)

Return Values

TRUE if the append was successful, FALSE otherwise.

Diagnostics

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

Description

TipcMsgUpdateNamedUnknown updates a named field with an unknown or non-existent value.

See Also

TipcMsgAddNamedUnknown, TipcMsgGetNamedUnknown

Examples

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

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

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