0

I'm trying to serialize objects/messages and send them as UDP packets between nodes. I'm currently looking at cereal for serialization and boost::asio for actual network programming. Are there any examples of using these two libraries together, even if it's pseudocode?

jest jest
  • 125
  • 1
  • 2
  • 8

2 Answers2

0

You can treat any example of Boost Serialization with Asio as the pseudo code example. Despite some differences, Cereal is similar enough to Boost Serialization for the samples to be relevant.

sehe
  • 374,641
  • 47
  • 450
  • 633
0

Only use boost over the network, if your api is stable, and YOU never plan to upgrade to a newer version. Since boost serialization changes with each new release. i.e server with one version of boost and client with a another version, will not work, even if you have made no changes.