asio:多个待处理的async_read? [英] asio : multiple pending async_read?
本文介绍了asio:多个待处理的async_read?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
async_read在收到请求的字节数时调用回调.这可能意味着多次调用async_read_some.
async_read calls the callback when the requested amount of bytes have been received. This may imply multiple calls to async_read_some.
在文档中,指定最多可以有一个未决的async_read_some.必须在发出下一个async_read_some之前调用该回调.
In the documentation it is specified that there can be at most one pending async_read_some. The callback has to be called before the next async_read_some may be issued.
那async_read呢?可以将多个async_read排队吗?如果是,执行顺序是否保证得到保留?
What about the async_read ? Can multiple async_read be queued ? If yes, is the order of execution guaranteed to be preserved ?
推荐答案
查看全文