TipcSrvIsRunning check if the RTclient can create a connection to RTserver
None
TRUE
if the RTclient can create a connection to RTserver, FALSE
otherwise.
If TipcSrvIsRunning fails, it returns FALSE
and sets the global SmartSockets error number to:
TipcSrvIsRunning checks if the RTclient can create a connection to RTserver. If the RTclient already has a full connection to RTserver, then TipcSrvIsRunning returns TRUE
immediately. Otherwise TipcSrvIsRunning attempts to create a connection in a fashion similar to that of TipcSrvCreate, except that TipcSrvIsRunning never attempts to start RTserver. If TipcSrvIsRunning can create a connection, it destroys the connection and return TRUE
.
TipcSrvIsRunning actually tries to create a connection to RTserver.
This example checks if RTserver is already running with TipcSrvIsRunning:
if (TipcSrvIsRunning()) { TutOut("RTserver is running.\n"); } else { TutOut("RTserver is not running.\n"); }
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |