TipcMsgGetTypeNum get the message type of a message as an integer
msg
message to get the message type of
type_num_return
storage for the message type
TRUE
if the message type was successfully retrieved, FALSE
otherwise.
If TipcMsgGetTypeNum fails, it returns FALSE
and sets the global SmartSockets error number to one of:
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.
None
TipcMsgGetType, TipcMtLookupByNum
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 |