- Reliable interprocess communication can be added to your program using the TIBCO SmartSockets API or the TIBCO SmartSockets C++ class library.
- TIBCO SmartSockets uses a consistent naming convention for its functions, making it easy to understand and locate the functionality you need. TIBCO SmartSockets IPC functions always are prefixed with Tipc.
- All TIBCO SmartSockets programs must include the
<rtworks/ipc.h>
header file.
- With only three lines of code you were able to create a program to send a message; with six 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 which are covered later).
- Programs using the TIBCO SmartSockets API can be compiled and linked using the
rtlink
shell script or with your own local make file and compiler.
- Before publishing any messages, be sure that your programs to receive and process the messages are running.
- Almost all TIBCO SmartSockets functions return an error code. These codes should be checked to verify that the call to the API completed correctly. TutErrStrGet can be used to retrieve the most recent global error code set.
- Although error checking of return codes is highly recommended, it is not shown in the example programs in this tutorial to keep the examples short and easy to read.
- The TIBCO SmartSockets C++ class library is very similar to the C API but offers several advantages including a less complex API, object-orientation, simplified memory management, reusability, and simpler encoding and decoding of messages.
- C program examples always have an extension of
.c
. C++ programs have an extension of .cxx
.