Contents Index Initializing the synchronization parameters Invoking synchronization

UltraLite Static C++ User's Guide
  Adding Non Data Access Features to UltraLite Applications
    Adding synchronization to your application

Setting synchronization parameters


The following code initiates TCP/IP synchronization. The MobiLink user name is 50, with an empty password, the script version is custdb, and the MobiLink synchronization server is running on the same machine as the application (localhost), on the default port (2439):

auto ul_synch_info synch_info;
conn.InitSynchInfo( &synch_info );
synch_info.user_name = UL_TEXT( "50" );
synch_info.version = UL_TEXT( "custdb" );
synch_info.stream = ULSocketStream();
synch_info.stream_parms =
   UL_TEXT("host=localhost");
conn.Synchronize( &synch_info );

Contents Index Initializing the synchronization parameters Invoking synchronization