2

Is there a C library that serializes and/or synchronizes data structures on two distinct nodes. It would be ideal if synchronizing is not intertwined with serialization. To summarize, what i want would be distributed synchronization of data structures (trees, structs, etc) in a transparent manner.

The closest i came to an answer is Client-server synchronization pattern / algorithm?, but no links were provided.

2
  • Is this relevant ?? Maemo|GObject with DBUS Commented May 20, 2011 at 10:33
  • Update: libopensync seems promising (can synchronize arbitary data ), AFAIK if the plugin is not a server type (dosent read socket directly .. marshalling Transport layer is taken care of by the library) else AFAIK we have to provide it (you could use AMQP, beanstalkd, zeromq,etc) along with google protocol buffer,etc libopensync Commented Aug 2, 2011 at 10:21

1 Answer 1

0

As far as I know, there is no pre-made data synchronization library for C/C++.

You could use MessagePack, and add a last_updated timestamp field to your structure. Then you could use MessagePack to compare timestamps and transfer data between nodes.

MessagePack even provides a helpful Quick Start tutorial at http://wiki.msgpack.org/pages/viewpage.action?pageId=1081387.

Sign up to request clarification or add additional context in comments.

1 Comment

Uodate: See my comment for a possible solution

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.