A conduit can be simple or complex, depending on the job it has to do. Regardless of its complexity, you create it in the same way: a conduit is a desktop plug-in made in a desktop development environment.
A conduit isn’t code that runs on the Palm handheld, but an executable library that runs during the HotSync.
A conduit is responsible for the application’s data during synchronization between the handheld and a desktop computer. The conduit needs to do the following:
Open and close databases on the Palm device.
Determine whether data should be moved to the handheld, from the handheld, or some combination of both.
Appropriately add, delete, and modify records on the handheld and on the desktop.
Be able to work within a multiuser environment in which more than one Palm handheld may be syncing to the same network or desktop computer (though not necessarily at the same time).
Convert the data in the application’s database records to appropriate data structures on the desktop computer.
Compare records so that only modified records are synced (this is optional, though recommended).
Your conduit is responsible for saving the data on the desktop in whatever way makes sense. If your conduit syncs to a file for a desktop application, it needs to read and write data in that application’s file format. Your conduit may read and write records from a database on the desktop or some database on the network. As a result, each conduit handles storing ...