Possible Duplicate:
Binary serialization/de-serialization in C++ and C#
I am working on a project where server is written in C++ (boost is extensively used) and the client application is written in C#. I am facing the problem while serializing/deserializing messages between client/server.
I have studied various alternative libraries for achieving this sort of cross-platform serialization, and Protocol Buffers seems to be the best... but it does not support serialization of the standard library's map
container and boost::shared_ptr
.
My question then, is:
- Can someone explain how
map
andboost::shared_ptr
could be serialized using Protocol Buffers. Or failing that, - Would Apache's Thrift work for this?
- ...Or am I stuck using interop DLLs on the (C#) client side?