Why would we need many acceptors in the Boost.ASIO?

我们两清 提交于 2019-12-04 19:06:09

The acceptor is bound to a specific endpoint.

What's more it differs with respect to protocol choice.

So, you could have several acceptors for several endpoints on several protocols.

What you seem to be after is, indeed, you can run them all on a single io_service and there would not be any need to run it on more than one thread.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!