Select functionality in boost::asio

后端 未结 3 465
暖寄归人
暖寄归人 2021-01-11 10:56

I am going to use boost::asio lib for my project. But it\'s not quite obvious which function is corresponding to select() from native socket C lib. Is that avai

3条回答
  •  情深已故
    2021-01-11 11:04

    The high-level design of Boost.Asio is based on the Proactor desing pattern. Thus, you don't need to poll on select. Instead, submit your completion handler for an asynchronous operation, and when the operation gets completed - the completion handler gets called.

提交回复
热议问题