TipcMonPrintWatch print all monitoring categories being watched
func
TutOut
-style output function
TRUE
if the watch information was successfully printed, FALSE
otherwise.
If TipcMonPrintWatch fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcMonPrintWatch prints all the monitoring categories being watched to a TutOut
-style output function. The output function is called once for each line of output.
None
This example starts watching a few monitoring categories and then calls TipcMonPrintWatch to print out what is being watched:
if (!TipcMonSubjectSubscribeSetWatch(T_IPC_MON_ALL, TRUE) { return;/* error */
} if (!TipcMonProjectNamesSetWatch(TRUE) { return;/* error */
} if (!TipcMonClientTimeSetWatch("primary", TRUE) { return;/* error */
} if (!TipcMonClientMsgSubscribeSetWatch("primary", "numeric_data") { return;/* error */
} if (!TipcMonPrintWatch(TutOut)) { return;/* error */
}
The above fragment would print this output:
Watching project_names. Watching subject_subscribe <@>. Watching client_time <primary>. Watching client_msg_recv <primary> <numeric_data>.
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |