1 Oct 2009 12:12
Re: libsynthesis_srv
On Sat, 2009-09-26 at 21:21 +0100, Patrick Ohly wrote: > On Sat, 2009-09-26 at 15:02 +0100, Lukas Zeller wrote: > > On Sep 25, 2009, at 15:13 , Patrick Ohly wrote: > > > > > On Tue, 2009-09-22 at 15:53 +0100, Lukas Zeller wrote: > > >> To make both server and client libraries linkable into the same app, > > >> libsynthesis_srv defines a different prefix for the entry points: > > >> SySync_srv_xxxxx (defined in > > >> serverengine_opensource_linux_prefix.h), > > >> as opposed to SySync_xxxxx for the client variant. > > > > > > "linkable into the same app" only works when using shared libraries. > > > In > > > static libraries there still would be plenty of name clashes, wouldn't > > > they? > > > > Why? The only symbols that need to be global/external > > xxx_ConnectEngine and xxx_DisconnectEngine which will not clash due to > > the prefix. All other symbols and class names should be local symbols > > of the library and not cause clashes with anything in other libs, > > IMHO. Or am I totally wrong with the way static libs work in Linux? > > I'm afraid static libraries don't have "local symbols". Think of it as > linking all object files from both libs into the same executable and you > get the right idea about the kind of name clashes that would occur. > > Speaking of name clashes, perhaps this can be avoided with a little > dirty trick: when compiling the server, redefined the word "sysync" to > "sysyncserver". This changes the namespace and thus the name of all > global symbols, avoiding name clashes between the two versions of the(Continue reading)
In addition I'd appreciate some feedback from Beat on moving the SAN
class into the SDK - see the "san" branch in moblin.org.
Thanks, Patrick
On Thu, 2009-09-24 at 09:27 +0100, Patrick Ohly wrote:
> On Wed, 2009-09-23 at 17:34 +0200, Patrick Ohly wrote:
> > On Mon, 2009-09-21 at 16:31 +0100, Lukas Zeller wrote:
> > > I also attached a PDF (Synthesis_SyncML_SAN_implementation_notes.pdf)
> > > which documents the way we have implemented SAN in the Synthesis PDA
> > > clients (Winmobile and PalmOS). It might answer some of the questions
> > > already.
> >
> > Yes, it does, at least for the HTTP server case.
>
> Some more questions...
>
> First, the SyncML server may choose a Session ID in one of the SAN
> fields. If it does, the client is expected to use that in its first
> SyncML message. Is this supported by the Synthesis engine when running
> as client?
>
> Second, when using the Synthesis server to synchronize against phones
> via Bluetooth we will have to emulate other servers ("PC Suite") and
> their URIs, otherwise the phones won't know how to sync with us. We
> don't want to name our server datastores according to what some other
RSS Feed