Disconnecting from RTserver


Every RTclient program should call the TipcSrv.destroy method before exiting. An RTclient using the TCP/IP protocol to connect to RTserver may lose outgoing messages if the process terminates without calling TipcSrv.destroy. The TipcSrv.destroy method forces the operating system to deliver all outgoing messages. Invoking flush is not, in itself, enough to guarantee message delivery immediately prior to a program’s termination.

When the connection to the RTserver is destroyed by calling TipcSrv.destroy(TipcSrv.CONN_NONE) all server create and server destroy callbacks are also destroyed.

If an RTclient has registered any server create or server destroy callbacks then these callbacks are destroyed when TipcSrv.destroy(TipcSrv.CONN_NONE) is called.


TIBCO SmartSockets™ Java Library User’s Guide and Tutorial
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com