TipcMsgGetReadOnly get read-only property of message
msg
message to get read-only property from
read_only_return
storage for read-only property
TRUE
if the read-only property was successfully retrieved from the message, FALSE
otherwise.
If TipcMsgGetReadOnly fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcMsgGetReadOnly gets the read-only property of a message. A message is marked read only if the message is embedded as a field in another message.
If TipcMsgGetReadOnly returns FALSE
, it does not store a value in read_only_return
.
This example prints the read-only property of a message:
void print_read_only(msg) T_IPC_MSG msg; { T_BOOL read_only; if (!TipcMsgGetReadOnly(msg, &read_only)) {return
; /* error */
} TutOut("The message is %smarked read-only.\n", read_only ? "" : "not "); }/* print_read_only */
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |