TRS user exits for Open Server Connect and Disconnect events should be written and tested using the sample exits and test harness provided at $SYBASE/$SYBASE_ECON/serverName/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 are defined as:
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 following 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 following 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.
The following 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, and
ext is .so for AIX and Sun Solaris, .sl for HP-UX, and .dll for Windows.
The following executable, depending on your platform:
ue_test.platformTest harness produced from makeexe.platform
where platform is: aix, hpux, sol, or nt.
One parameter is required by ue_test.platform which specifies the dynamic library to be loaded. Following is an example:
ue_test.<platform> ./libtrsue_<platform><ext>
where platform is: aix, hpux, sol, or nt and
ext is .so for AIX and Sun Solaris, .sl for HP-UX, and .dll for Windows.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |