Follow these rules when writing mixed-mode applications:
The first Open ServerConnect or Client-Library call must be TDINIT.
Call TDACCEPT before calling any Client-Library functions.
TDACCEPT allocates the handle for the connection to the remote client, reads in client login information, and does the necessary translations.
We recommend using Gateway-Library “receive” functions (TDRCVPRM, TDRCVSQL) to retrieve client data before calling any Client-Library functions when you use different levels of Open ClientConnect and Open ServerConnect. Otherwise, Client-Library calls will not abend but can get out of synchronization.
After the final results are sent to the remote client, use TDFREE and TDTERM to end the transaction.
A sample mixed-mode application, SYCTSAX4, is in Appendix F, “Sample Mixed-Mode Application.”
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |