- Reliable interprocess communication can easily be added to your program with the SmartSockets Java classes.
- SmartSockets uses a consistent naming convention for its classes, making it easy to understand and locate the functionality you need.
- All SmartSockets programs must import the
com.smartsockets
package.
- With very few lines of code you were able to create a program to send a message. With a few more lines of code you were able to write a program that reads a message and outputs it (these programs also perform a number of other valuable tasks that are covered in later lessons).
- Before publishing a message, be sure that your receiving program is running.
- Many SmartSockets methods potentially throw an exception. These exceptions should be handled appropriately within
catch
blocks in case the method did not complete correctly.
- SmartSockets programs should always try to catch the TipcException or TipcException-derived exception thrown by a block of code in preference to the more generic Exception class, to help differentiate SmartSockets errors.