开发者

boost::asio when should I use socket::async_send instead of the free function async_write?

socket::async_send() is a composed method which is implemented in termos of zero or more calls to socket::async_write_some(). However, as the documentation describes:

The send operation may n开发者_Go百科ot transmit all of the data to the peer.

So, when do I need such a behavior?


When you are bursting info on the socket and part of the info is disposable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜