TipcMonServerMaxClientLicensesGetWatch determine if the RTserver is watching for the server cloud to exceed the licensed number of RTclient connections
T_BOOL TipcMonServerMaxClientLicensesGetWatch(server_name
,watch_status_return
) T_STRserver_name
; T_BOOL *watch_status_return
;
server_name
name of the RTserver to set watch status (wildcard names allowed, or use T_IPC_MON_ALL to indicate a poll of all RTservers matching the value of Monitor_Scope)
watch_status_return
storage for watch status
TRUE
if the watch status was successfully retrieved, FALSE
otherwise.
If TipcMonServerMaxClientLicensesGetWatch fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcMonServerMaxClientLicensesGetWatch determines whether the server_name
RTserver is watching for the server cloud to exceed the maximum licensed number of RTclient connections. The server_name
argument can be the unique subject name of a single RTserver, a wildcarded subject name to match many RTservers, or T_IPC_MON_ALL to poll all RTservers that match the value of the Monitor_Scope option. The watch_status_return
argument is set to TRUE
if the watch is currently active, FALSE
if not.
TipcMonServerMaxClientLicensesGetWatch returns FALSE
, it does not store a value in watch_status_return
.
RTserver licenses can only be watched, not polled.
TipcMonServerMaxClientLicensesSetWatch
This example uses TipcMonServerMaxClientLicensesGetWatch to determine whether the RTserver is watching for the RTserver cloud to exceed the maximum licensed number of RTclient connections:
T_BOOL watch_status;
if (!TipcMonServerMaxClientLicensesGetWatch("/...",
&watch_status)) {
return; /* error */
}
TutOut("This RTclient is %s client rejections in ",
watch_status ? "watching" : "not watching");
TutOut("all servers.\n");
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |