TipcMtSetDeliveryTimeout


Name

TipcMtSetDeliveryTimeout — set the delivery timeout of a message type

Synopsis

T_BOOL TipcMtSetDeliveryTimeout(mt, delivery_timeout) 
T_IPC_MT mt; 
T_REAL8 delivery_timeout; 

Arguments

mt — message type to set delivery timeout for

delivery_timeout — message type delivery timeout in seconds

Return Values

TRUE if the delivery timeout was successfully set for the message type, FALSE otherwise.

Diagnostics

If TipcMtSetDeliveryTimeout fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

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.

Caution

None

See Also

TipcMsgSetDeliveryTimeout, TipcMtGetDeliveryTimeout

Examples

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