简体   繁体   中英

boost::asio async_write complex structure

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

Thanks!

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM