TipcMtGetNum get the number of a message type
mt
message type to get number from
num_return
storage for message type number
TRUE
if the number was successfully retrieved from the message type, FALSE
otherwise.
If TipcMtGetNum fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcMtGetNum gets the number of a message type. Message type numbers less than 1 are reserved for SmartSockets standard message types.
If TipcMtGetNum returns FALSE
, it does not store a value in num_return
.
TipcMtCreate, TipcMtGetGrammar, TipcMtGetName
This example prints the number of the NUMERIC_DATA message type:
T_IPC_MT mt; T_INT4 num; mt = TipcMtLookup("numeric_data"); if (mt == NULL) {return
; /* error */
} if (!TipcMtGetNum(mt, &num)) {return
; /* error */
} TutOut("NUMERIC_DATA msg type has num %d\n", num);
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |