Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (Français) » SQL Remote » Managing SQL Remote systems » Controlling message size » Encoding: Preventing message corruption


Creating custom encoding schemes

To implement a custom encoding scheme, you can build a custom encoding DLL. You can use this custom DLL to apply special features required for a particular messages system, or to collect statistics, such as how many messages are sent to each user.

The header file dbrmt.h is installed in the install-dir directory. This file includes an application programming interface that you can use to build a custom encoding scheme.

To use your custom DLL, set the message control parameter encode_dll to a value that is the full path to the custom DLL. For example:

SET REMOTE FTP OPTION "Public"."encode_dll" = 'c:\\sqlany12\\Bin32\\custom.dll';
Encoding and decoding must be compatible

If you implement a custom encoding, you must make sure that the DLL is present at the receiving end, and that the DLL is in place to decode your messages properly.

 See also