On Aug 31, 2009, at 22:15 , Patrick Ohly wrote:
The biggest unknown factor for 1.0 are the necessary changes in
libsynthesis [to make a SyncML server version of it].
Lukas has reassured me that he has made good progress
towards those, but they have a business to run and therefore might
have more important work to deal with first. September 4th in the
schedule below is way too early
On Mon, 2009-08-31 at 20:21 +0100, Lukas Zeller wrote:
This way, I think that a alpha libsynthesis_srv until end of
could still work.
Ok, some time has passed, but today I could push a working
libsynthesis_srv (i.e. it runs ok with some non-in-depth local testing
and a TextDB backend) to synthesis indefero git, luz branch.
What's missing is the automake build, only the plain "make -f
server_engine_linux.mk" in src/ works (kind of, probably output dirs
need to be manually created).
There is also a server config sample in the sysync_SDK/configs
subdirectory (that's the one I have used in my tests).
I'll have to document the correct way to use it, but it's quite simple
and very similar to the client case. Rough sketch:
- receive request from client
- create a session with OpenSession()
- put some data into the engine buffer of that session
- start stepping with STEPCMD_GOTDATA
- step until STEPCMD_SENDDATA
- get data from buffer and send it to client
- step until STEPCMD_DONE or STEPCMD_NEEDDATA
- wait for next request if not STEPCMD_DONE
- if done, CloseSession().
More information later...
Have fun :-)
Lukas Zeller (luz(a)synthesis.ch)
Synthesis AG, SyncML Solutions & Sustainable Software Concepts