TipcMsgGetDeliveryTimeout get the delivery timeout of a message in seconds
T_BOOL TipcMsgGetDeliveryTimeout(msg, delivery_timeout_return
) T_IPC_MSGmsg
; T_REAL8 *delivery_timeout_return
;
msg
message to get delivery timeout from
delivery_timeout_return
storage for message delivery timeout
TRUE
if the delivery timeout was successfully retrieved from the message, FALSE
otherwise.
If TipcMsgGetDeliveryTimeout fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcMsgGetDeliveryTimeout gets the delivery timeout of a message in seconds. The delivery timeout of a message controls how long to wait for guaranteed message delivery to complete when a message is sent through a connection with TipcConnMsgSend. When a message is created, its delivery timeout is initialized to the message type delivery timeout, which defaults to UNKNOWN
. This allows a default value to be easily set for all messages of a certain type. See TipcMtGetDeliveryTimeout for more information on message type delivery timeouts.
When a message is sent using GMD on a connection, the connection delivery timeout is used if the message delivery timeout is not set. The delivery timeout of a message is never sent through the connection, as it is only needed by the sending process.
None
TipcMsgSetDeliveryTimeout, TipcMtGetDeliveryTimeout
This example gets the delivery timeout of a message:
T_REAL8 delivery_timeout; if (!TipcMsgGetDeliveryTimeout(msg, &delivery_timeout)) {
return
; /* error */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |