简体   繁体   English

boost :: asio async_write复杂结构

[英]boost::asio async_write complex structure

Whats the best way to send a complex structure using boost's asio async_write ... Any suggestions? 使用boost的asio async_write发送复杂结构的最佳方法是什么?有什么建议吗?

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. 我已经使用Boost.Serialization与Boost.Asio的时候回答了类似的问题, 这里是一个可能对你有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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