TipcMonProjectNamesGetWatch


Name

TipcMonProjectNamesGetWatch — determine if this RTclient is watching project names

Synopsis

T_BOOL TipcMonProjectNamesGetWatch(watch_status_return) 
T_BOOL *watch_status_return; 

Arguments

watch_status_return — storage for watch status

Return Values

TRUE if the project names watch status was successfully retrieved, FALSE otherwise.

Diagnostics

If TipcMonProjectNamesGetWatch fails, it returns FALSE and sets the global SmartSockets error number to:

Description

TipcMonProjectNamesGetWatch gets whether this RTclient is watching project names. The watch status controls whether the RTclient receives a MON_PROJECT_NAMES_STATUS message each time a project is created or destroyed. A project is considered created when the first RTclient in that project connects to RTserver. A project is considered destroyed when the last RTclient in that project disconnects from RTserver.

Each MON_PROJECT_NAMES_STATUS message contains three fields:

To set whether this RTclient is watching project names, use TipcMonProjectNamesSetWatch. To poll once for project names, use TipcMonProjectNamesPoll.

For an example of how MON_PROJECT_NAMES_STATUS messages can be used, see the RTmon GDI Project Browser window.

Caution

If TipcMonProjectNamesGetWatch returns FALSE, it does not store a value in watch_status_return.

See Also

TipcMonProjectNamesPoll, TipcMonProjectNamesSetWatch

Examples

This example uses TipcMonProjectNamesGetWatch to get the status of watching project names:

T_BOOL watch_status; 
 
if (!TipcMonProjectNamesGetWatch(&watch_status)) { 
  return; /* error */ 
} 
TutOut("This RTclient is %s project names.\n", 
       watch_status ? "watching" : "not watching"); 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com