TipcMsgSetDeliveryMode


Name

TipcMsgSetDeliveryMode — set the delivery mode of a message

Synopsis

T_BOOL TipcMsgSetDeliveryMode(msg, delivery_mode) 
T_IPC_MSG msg; 
T_IPC_DELIVERY_MODE delivery_mode; 

Arguments

msg — message to set delivery mode for

delivery_mode — message delivery mode (T_IPC_DELIVERY_BEST_EFFORT, T_IPC_DELIVERY_ORDERED, T_IPC_DELIVERY_SOME, or T_IPC_DELIVERY_ALL)

Return Values

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

Diagnostics

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

Description

TipcMsgSetDeliveryMode sets the delivery mode of a message. The delivery mode of a message controls what level of guarantee is used when the message is sent through a connection with TipcConnMsgSend. Valid delivery mode values are:

TipcMsgSetDeliveryMode overwrites the default value of the delivery mode property set by TipcMtSetDeliveryMode. See TipcMsgGetDeliveryMode for more information on message delivery modes.

Caution

If you are sending messages to JMS clients, set the delivery mode to T_IPC_DELIVERY_ORDERED.

See Also

TipcMsgGetDeliveryMode, TipcMtSetDeliveryMode

Examples

This example sets the delivery mode of a message:

if (!TipcMsgSetDeliveryMode(msg, T_IPC_DELIVERY_ALL)) { 
  return;  /* error */ 
} 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com