Table of Contents
Computers are useless. They can only give you answers.
The server sleeps on one machine and listens for TCP connections on a specified port. Whenever a client connects, it auto detects whether it is raw TCP, HTTP, or HTTPS encapsulated.Then it starts a new SyncML session with the connected client.
Whenever synchronization conflicts occur, the server uses the methods described in Chapter 7, Handling conflicts to resolve them
The server needs some kind of configuration file. It needs to know which port to listen to and how to connect to its database. Instead of looking for a config file library or even writing a new one, a much simple solution is used: The configuration file itself is specified in XML. Libsyncml has to be linked with an XML parser anyway, so using the same parser for config files adds no extra dependency.