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

SQL Anywhere 10.0.1 » UltraLite - C and C++ Programming » Developing UltraLite Applications for the Palm OS

Adding HotSync synchronization to Palm applications Next Page

Adding TCP/IP, HTTP, or HTTPS synchronization to Palm applications


This section describes how to add TCP/IP, HTTP, or HTTPS synchronization to your Palm application.

For a general description of how to add synchronization to UltraLite applications, see Adding synchronization to your UltraLite application.

Transport layer security on the Palm OS

You can use transport-layer security with Palm applications built with Metrowerks CodeWarrior.

For more information about transport-layer security, see Encrypting MobiLink client/server communications.

Palm devices can synchronize using TCP/IP, HTTP, or HTTPS communication by setting the stream member of the ul_synch_info structure to the appropriate stream, and calling ULSynchronize or ULConnection.Synchronize to carry out the synchronization.

When using TCP/IP, HTTP, or HTTPS synchronization, db_init or db_fini save and restore the state of the application on exiting and activating the application, but do not participate in synchronization.

Before closing the application, set the synchronization information using ULSetSynchInfo, providing ul_synch_info structure as an argument.

When using TCP/IP, HTTP, or HTTPS synchronization from a Palm device, you must specify an explicit host name or IP address in the stream_parms member of the ul_synch_info structure. Specifying NULL defaults to localhost, which represents the device, not the host.

For more information about the ul_synch_info structure, see Network protocol options for UltraLite synchronization streams.