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