Contents Index StopSynchronizationDelete method ULData class pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    ULConnection class

Synchronize method


Prototype 

bool  Synchronize ( ul_synch_info * synch_info )

Description 

Synchronizes an UltraLite database.

For a detailed description of the members of the synch_info structure, see Synchronization parameters.

Returns 

true (1) if successful.

false (0) if unsuccessful.

Example 

The following code fragment illustrates how information is provided to the Synchronize method.

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 );
See also 

Synchronization parameters


Contents Index StopSynchronizationDelete method ULData class pdf/preface.pdf