本文介绍了asio :: tcp :: socket的async_read_some和async_receive有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
之间有什么区别:
-
boost :: asio :: tcp :: socket :: async_read_some ()
-
boost :: asio :: tcp :: socket :: async_receive()
li>
我可以告诉他们的文档是相同的。
他们在(5.7.10.2 basic_stream_socket成员)也是相同的:
在async_receive :
打开async_read_some:
所以我想这证实了Jerry的印象。
What is the difference between:
boost::asio::tcp::socket::async_read_some()
boost::asio::tcp::socket::async_receive()
As far as I can tell their documentation is identical.
Which should I prefer?
解决方案
Their specification in the networking TR2 proposal (5.7.10.2 basic_stream_socket members) is identical too:
On async_receive:
On async_read_some:
So I guess this confirms Jerry's impression.
这篇关于asio :: tcp :: socket的async_read_some和async_receive有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!