开发者

Know when data is sent

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜