boost::asio async_write 复杂结构
使用 boost 的 asio async_write
发送复杂结构的最佳方法是什么...有什么建议吗?
谢谢!
Whats the best way to send a complex structure using boost's asio async_write
... Any suggestions?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要序列化结构,一些选项包括
我在使用时回答了几个类似的问题使用 Boost.Asio 进行 Boost.Serialization,这里是一个对你有用。
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.