Include Files


Several important header files are needed to compile and link with SmartSockets. These files are normally included in C/C++ code with the #include C/C++ preprocessor directive. The TIBCO SmartSockets header files are located in these directories:

UNIX:
$RTHOME/include/$RTARCH/rtworks 
OpenVMS:
RTHOME:[INCLUDE.RTWORKS] 
Windows:
%RTHOME%\include\rtworks 

Include header files with the angle-bracket syntax. For example, when using C, this inclusion line is used:

#include <rtworks/ipc.h> 

Use of the angle-bracket syntax is preferred over the use of double-quotes, as shown here:

#include "ipc.h"  

or

#include "pathname/ipc.h"  

On UNIX, using angle brackets requires using an argument to the C++ command.

$ CC -I$RTHOME/include/$RTARCH ... 

On OpenVMS, the logical RTWORKS directory is RTHOME:[INCLUDE.RTWORKS] so that DEC C++ uses that directory for <rtworks/ipc.h>.

On Windows, add the SmartSockets include directory %RTHOME%\include\rtworks to the list of Visual C++ Developer Studio project include directories. There are several example Visual C++ makefiles in %RTHOME%\examples\smrtsock\manual that you can use as a starting point for your application executables.


TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com