TipcMsgGetNamedInt8


Name

TipcMsgGetNamedInt8 — get a field with an INT8 value from a message, using a name

Synopsis

T_BOOL TipcMsgGetNamedInt8(msg, name, value_return) 
T_IPC_MSG msg; 
T_STR name; 
T_INT8 *value_return; 

Arguments

msg — message to get field from

name — name of the field

value_return — return pointer to value of the field

Return Values

TRUE if the get was successful, FALSE otherwise.

Diagnostics

If TipcMsgGetNamedInt8 fails, it returns FALSE and sets the global SmartSockets error number to:

Description

TipcMsgGetNamedInt8 gets the field specified by the name. The function fails if:

Caution

If TipcMsgGetNamedInt8 returns FALSE, it does not store a value in value_return.

Do not modify the value in value_return. It points directly into an internal data structure.

See Also

TipcMsgAddNamedInt8, TipcMsgUpdateNamedInt8, TipcMsgUpdateNamedInt8

Examples

This example gets an INT8 field from an existing message:

T_IPC_MSG msg; 
T_BOOL status; 
T_INT8 value; 
 
status = TipcMsgGetNamedInt8(msg, "foo", &value); 
if (status == FALSE) { 
  return;  /* error */ 
}  

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