TipcMsgUpdateNamedByte


Name

TipcMsgUpdateNamedByte — update a named BYTE field in a message with new data

Synopsis

T_BOOL TipcMsgUpdateNamedByte(msg, name, value) 
T_IPC_MSG msg; 
T_STR name; 
T_UCHAR value; 

Arguments

msg — message to update field in

name — name of the field

value — new value of the field

Return Values

TRUE if the update was successful, FALSE otherwise.

Diagnostics

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

Description

TipcMsgUpdateNamedByte updates a BYTE field specified by field name.

Caution

None

See Also

TipcMsgAddNamedByte, TipcMsgUpdateNamedByte

Examples

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

T_UCHAR data; 
if (!TipcMsgUpdateNamedByte(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