TipcMtSetUserProp set the user-defined property of a message type
mt
message type to set user-defined property for
user_prop
message type user-defined property
TRUE
if the user-defined property was successfully set for the message type, FALSE
otherwise.
If TipcMtSetUserProp fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcMtSetUserProp sets the user-defined property of a message type. The user-defined property of a message type is used as the default user-defined property for messages of this type. See TipcMtGetUserProp for more information on message type user-defined properties.
None
TipcMsgSetUserProp, TipcMtGetUserProp
This example sets the user-defined property of the NUMERIC_DATA message type to 42
:
T_IPC_MT mt; mt = TipcMtLookup("numeric_data"); if (mt == NULL) {return
; /* error */
} if (!TipcMtSetUserProp(mt, 42)) {return
; /* error */
}/* After this point, all newly-created NUMERIC_DATA messages will have a default user-defined property of 42. */
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |