Up to this point, all of our sample programs have connected to an RTserver running on the same node. This is the default behavior of TIBCO SmartSockets. If you do not specify where the RTclient should try to find and connect to an RTserver, it always looks locally first.
This default behavior can be altered by setting the Server_Names option for the RTclient. This option can be used to specify where the RTserver is located for the program to connect to, as well as what protocol to use when connecting. The Server_Names option may contain a list of machines with which the RTclients attempt to establish a connection.
Just as with the Project option, the Server_Names option can be either set programmatically or it can be set using the setopt command in a file, and executing the source
command on the file. For more details on how an RTclient finds an RTserver and connects to it, see the section on finding and starting RTserver in the publish-subscribe chapter of the TIBCO SmartSockets User’s Guide.
TIBCO SmartSockets™ Tutorial Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |