TipcMtDestroy


Name

TipcMtDestroy — destroy a message type

Synopsis

T_BOOL TipcMtDestroy(mt) 
T_IPC_MT mt; 

Arguments

mt — message type to destroy

Return Values

TRUE if the message type was successfully destroyed, FALSE otherwise.

Diagnostics

If TipcMtDestroy fails, it returns FALSE and sets the global SmartSockets error number to:

Description

TipcMtDestroy destroys a message type. All memory for the message type is freed. It is unusual to destroy a message type; TipcMtDestroy is provided for completeness.

Caution

None

See Also

TipcMtCreate

Examples

This example looks up a message type and destroys it:

T_IPC_MT mt; 
 
mt = TipcMtLookup("numeric_data"); 
if (mt == NULL) { 
  return;  /* error */ 
} 
  
if (!TipcMtDestroy(mt)) { 
  return;  /* error */ 
} 

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