TipcMsgGetTypeNamed


Name

TipcMsgGetTypeNamed — get the type of a field from a message, using a name

Synopsis

T_BOOL TipcMsgGetTypeNamed(msg, name, type) 
T_IPC_MSG msg; 
T_STR name; 
T_IPC_FT *type; 

Arguments

msg — message to get field type from

name — name of the field

type — return pointer to type of the field, such as T_IPC_FT_INT2 or T_IPC_FT_INT4

Return Values

TRUE if the get was successful, FALSE otherwise.

Diagnostics

None

Description

TipcMsgGetTypeNamed gets the type of the field specified by the name. The type of the field is returned in the type pointer. TipcMsgGetTypeNamed fails if no field by this name exists.

See Also

TipcMsgNextType

Examples

This example gets the type of a field from an existing message:

T_IPC_MSG msg; 
T_BOOL status; 
T_IPC_FT type; 
 
status = TipcMsgGetTypeNamed(msg, "foo", &type); 
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