TRS user exits for Open Server Connect and Disconnect events should be written and tested using the sample exits and test harness provided at /<install_dir>/DC-15_0/srvname/sample/trs/ue. Following is a description of the source, header, makefiles, libraries and executable files, many of which are dependent on your platform.The source files:
ue_connect.cpp – connection event sample user exit code.
ue_disconnect.cpp – disconnect event sample user exit code.
ue_test.cpp – test harness to invoke the Connect and Disconnect user exits.
The header files, depending on your platform:
ue_platform.h – platform required header for implementing user exits where <platform> is one of: aix, hpux, sol, nt.
ue_classes.h – required by ue_test.cpp.
ue_global.h – required user exit definitions.
The makefiles, depending on your platform:
makeexe.platform
where platform is aix, hpux, sol, or nt.
Generates ue_test <platform>, the user exit test harness.
makefile.platform
where platform is aix, hpux, sol, or nt.Generates required library libtrsue_platform.ext
where ext is .so for AIX and Sun Solaris, .sl for HP-UX, and dll for Windows.
These libraries, depending on your platform:
libue_platform.a
Required library for testing user exits with ue_test.platform,
where platform is: aix, hpux, sol, or nt.
libtrsue_platform.ext
Library containing user exits generated by makefile.platform
where:
platform is aix, hpux, sol, or nt.
ext is .so for AIX and Sun Solaris, .sl for HP-UX, and .dll for Windows
These executables, depending on your platform:
ue_test.platform
where platform is aix, hpux, sol, or nt.
Test harness produced from makeexe.platform:
One parameter is required by ue_test.platform which specifies the dynamic library to be loaded, for example:
ue_test.<platform> ./libtrsue_<platform><ext>
where:
platform is aix, hpux, sol, or nt
ext is .so for AIX and Sun Solaris, .sl for HP-UX, and .dll for Windows.