The files for this lesson are located in the directories:
In the previous lesson, you wrote a program to send a message and a second program to read and print out the message. This message was not transferred directly from sender to receiver; rather, it went first from the sender to the SmartSockets RTserver, and then from RTserver to the RTclient program (in this case, the receiver). Notice that the intervention of RTserver is completely transparent. In fact, RTserver performs many important tasks transparently. Many of these tasks are described in this lesson.
SmartSockets does allow you to send messages directly between two RTclients, peer-to-peer, without using RTserver. This is accomplished using connections. The SmartSockets TipcConn class is used to work with peer-to-peer connections. The lessons in this reference focus on using RTserver for interprocess communication, because this is the method most commonly used and it offers numerous advantages over SmartSockets peer-to-peer connections. For detailed information on connections, see the TIBCO SmartSockets User’s Guide.
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 |