开发者

Know when data is sent

开发者 https://www.devze.com 2023-03-27 11:07 出处:网络
I believe know that call send or WSASend in nonblo开发者_JAVA技巧cking mode add simply data in a internal buffer, but how know when data is really sent ? My goal is to display a progress bar.You could

I believe know that call send or WSASend in nonblo开发者_JAVA技巧cking mode add simply data in a internal buffer, but how know when data is really sent ? My goal is to display a progress bar.


You could try Boost.Asio (if it's feasible for you to change). It can perform async or sync sending and receiving. When sending asyncronously you can register a function that will be called when the send is complete.

0

精彩评论

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

关注公众号