Priority


Type:
Two-byte integer of C type T_INT2
Default Value:
None. This value is unknown when creating a message type.
Valid Values:
Any integer 0 or greater

The priority property identifies the default priority for messages of this type. The message priority property controls where an incoming message is inserted into a connection’s message queue. The message type priority can either be set to a specific value or it can be unknown. When a message is created, its priority is initialized to the message type priority (if set) or to the value of the option Default_Msg_Priority (if the message type priority is unknown). Message priorities are discussed in Priority.

The priority of an outgoing message can always be set on a per-message basis, but using message type priorities makes it easier to raise or lower the default priority for all outgoing messages of a specific type. Note that if set, the message type priority always overrides the value in the option Default_Msg_Priority. The standard SmartSockets message types, by default, all have a priority of unknown, but these can be changed if desired. User-defined message types can use whatever priority you choose.

Function to set value:

TipcMtSetPriority and TipcMtSetPriorityUnknown. For example:

if (!TipcMtSetPriority(mt, 100)) { 
  /* error */ 
} 
Function to get value:

TipcMtGetPriority. For example:

if (!TipcMtGetPriority(mt, &priority)) { 
  /* error */ 
} 

TIBCO SmartSockets™ User’s Guide
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com