Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

boost::asio async_write complex structure

Whats the best way to send a complex structure using boost's asio async_write... Any suggestions?

Thanks!

like image 231
poy Avatar asked Aug 13 '26 09:08

poy


1 Answers

You'll need to serialize the structure, some options include

  • Boost.Serialization
  • Google Protocol Buffers

I've answered several similar questions when using Boost.Serialization with Boost.Asio, here is one that may be useful to you.

like image 145
Sam Miller Avatar answered Aug 14 '26 22:08

Sam Miller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!