Boost logo

Boost Users :

From: Mathieu Peyréga (mathieu.peyrega_at_[hidden])
Date: 2008-08-08 06:05:44


Hello,

have you checked the portable binary archive (in the exemples of the
serialisation lib source directory)
I had a similar issue with non portable serialized files, and it solved it !

By the way, i'm wondering how many such undocumented treasures are
hidding in this amazing source code maze that the boost source tree is :-) !

Regards,

Mathieu

Ákos Maróy a écrit :
>
> Hi,
>
> I'm working on a cross-platform project, where we're serializing data
> and sending it over TCP, using boost::serialization and boost::asio.
> As the data is quite big, and is mainly numeric, binary serialization
> provides a nice advantage over XML-based serialization, both in terms
> of performance and data size.
>
> But, I've found that the serialized data itself is not cross-platform.
> E.g. if I have a simple app, that sends serialized data via a TCP
> connection, it works fine as long as both ends of the connection are
> on the same platform (say both are Linux x86_64, or both are Windows
> XP). but they don't interact with each other - the data sent by one
> platform is not accepted 'as is' by the other.
>
> I wonder what provisions have to be done to achieve binary
> serialization that would work in such a context?
>
>
> Akos


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net