TipcSrvMonPrintWatch print all monitoring categories being watched
srv
connection handle to RTserver
func
TutOut
-style output function
TRUE
if the watch information was successfully printed, FALSE
otherwise.
If TipcSrvMonPrintWatch fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcSrvMonPrintWatch 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 TipcSrvMonPrintWatch to print out what is being watched:
if (!TipcSrvMonSubjectSubscribeSetWatch(srv, T_IPC_MON_ALL, TRUE)) {return
; /* error */
} if (!TipcSrvMonProjectNamesSetWatch(srv, TRUE)) {return
; /* error */
} if (!TipcSrvMonClientTimeSetWatch(srv, "primary", TRUE)) {return
; /* error */
} if (!TipcSrvMonClientMsgSubscribeSetWatch(srv, "primary", "numeric_data")) {return
; /* error */
} if (!TipcSrvMonPrintWatch(srv, TutOut)) {return
; /* error */
}
The above fragment prints 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 |