Message Type Properties


Compression


Type:
Boolean of C type T_BOOL
Default Value:
FALSE
Valid Values:
TRUE or FALSE

The compression property identifies the default compression setting for messages of this type. When the compression property is set to TRUE, the fields in the message are automatically compressed when the message is sent. The message is automatically decompressed when a receiver of the message attempts to access any of the message’s fields. For a discussion of compression, see Message Compression.

The compression setting for an outgoing message can always be set on a per-message basis, but using the message type compression setting makes it easier to change the default setting for all outgoing messages of a specific type.

Function to set value:

TipcMtSetCompression. For example:

T_IPC_MT mt; 
mt = TipcMtLookup("info"); 
if (mt == NULL) { 
  /* error */ 
} 
if (!TipcMtSetCompression(mt, T_TRUE)) { 
  /* error */ 
} 
Function to get value:

TipcMtGetCompression. For example:

T_IPC_MT mt; 
T_BOOL compress; 
mt = TipcMtLookup("info"); 
if (mt == NULL) { 
  /* error */ 
} 
if (!TipcMtGetCompression(mt, &compress)) { 
  /* error */ 
} 

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