Num Fields


Type:
Four-byte integer of C type T_INT4
Default Value:
0
Valid Values:
Any integer greater than 0

The num fields property identifies how many fields are in a particular message. Assigning this property truncates the message to desired number of fields. A value of 0 empties the data buffer completely.

Function to set value:

TipcMsgSetNumFields. This example empties the data buffer:

if (!TipcMsgSetNumFields(msg, 0)) { 
    /* error */ 
} 
Function to get value:

TipcMsgGetNumFields. For example:

if (!TipcMsgGetNumFields(msg, &num_fields)) { 
    /* error */ 
} 

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