TipcMsgGetTypeNum


Name

TipcMsgGetTypeNum — get the message type of a message as an integer

Synopsis

T_BOOL TipcMsgGetTypeNum (msg, type_num_return); 
T_IPC_MSG msg; 
T_INT4 *type_num_return; 

Arguments

msg — message to get the message type of

type_num_return — storage for the message type

Return Values

TRUE if the message type was successfully retrieved, FALSE otherwise.

Diagnostics

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

Description

TipcMsgGetTypeNum gets the value of the Number property of the message type. Each message type is uniquely identified by the Number property, which is stored internally as an integer. See the TIBCO SmartSockets User’s Guide for more information on message types.

Caution

None

See Also

TipcMsgGetType, TipcMtLookupByNum

Examples

This example:

T_BOOL status; 
T_INT4 mt_num; 
T_IPC_MT mt; 
T_IPC_MSG msg = data->msg; 
 
status = TipcMsgGetTypeNum(msg, &mt_num); 
T_ASSERT(T_TRUE == status); 
mt = TipcMtLookupByNum(mt_num); 

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