开发者

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

开发者 https://www.devze.com 2023-04-10 22:59 出处:网络
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:

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

精彩评论

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