UltraLite Database User's Guide
Synchronization for UltraLite Applications
Introduction
Adding synchronization to your UltraLite application
Each synchronization stream has a set of parameters that govern its behavior. You should set these synchronization stream parameters when you select a synchronization stream.
The way to select a synchronization stream and its associated synchronization stream parameters depends on the particular UltraLite development model you are using.
For UltraLite for MobileVB and UltraLite ActiveX, the synchronization stream is one of the synchonization parameters set in the Stream property of the ULSyncParms object. The stream parameters are provided as a set of keyword-value pairs in the StreamParms property.
For Native UltraLite for Java applications, the synchronization stream is set by the setStream method of the SyncParms object.
For more information, see ianywhere.native_ultralite.SyncParms in the API Reference.
For embedded SQL and static C++ API applications, the synchronization stream is set in the stream member of the ul_synch_info structure. The synchronization stream parameters are supplied in the stream_parms member of the ul_synch_info structure, as a string. The following code is an example for TCP/IP synchronization:
ul_synch_info info; ... info.stream = ULSocketStream(); info.stream_parms = UL_TEXT( "host=myserver" );
For more information, see the following:
For static Java applications, the synchronization stream parameters are supplied using the setStreamParms method. The following example illustrates how to call the method:
UlSynchOptions synch_options = new UlSynchOptions(); synch_opts.setStream( new UlSocketStream() ); synch_opts.setStreamParms( "host=myserver;port=2439" );
For more information, see stream synchronization parameter and stream_parms synchronization parameter.