TipcMsgAppendBoolArray append a field containing an array of BOOL fields to a message
T_BOOL TipcMsgAppendBoolArray(msg
,bool_array_data
,array_size
) T_IPC_MSGmsg
; T_BOOL *bool_array_data
; T_INT4array_size
;
msg
message to append field to
bool_array_data
data for new message field
array_size
number of elements in bool_array_data
TRUE
if the field was successfully appended to the message, FALSE
otherwise.
If TipcMsgAppendBoolArray fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcMsgAppendBoolArray appends a BOOL_ARRAY field containing bool_array_data
to the end of a message’s data. TipcMsgAppendBoolArray makes a copy of the BOOL_ARRAY data.
None
TipcMsgAppendBoolArrayPtr, TipcMsgNextBoolArray
This example creates a message and appends a BOOL_ARRAY field:
T_IPC_MT mt; T_IPC_MSG msg; T_BOOL data[2]; #define USER_MT_BOOL_ARRAY_TEST 100 mt = TipcMtCreate("bool_array_test", USER_MT_BOOL_ARRAY_TEST, "bool_array"); if (mt == NULL) {return
; /* error */
} msg = TipcMsgCreate(mt) if (msg == NULL) {return
; /* error */
}/* An RTclient would typically set the destination of */
/* a message at this point by calling TipcMsgSetDest. */
data[0] = T_TRUE; data[1] = T_FALSE; if (!TipcMsgAppendboolArray(msg, data, 2)) {return
; /* error */
}/* A process would typically send a message at this point by */
/* calling TipcConnMsgSend or TipcSrvMsgSend. */
/* A process would typically destroy a message at this point by */
/* calling TipcMsgDestroy. */
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |