Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道 boost.asio 有一种机制,可以在收到数据包时调用回调函数,但是是否可以选择发出信号? 我是否必须编写一个发出信号的函数? 如果是这样,为什么?
您可以使用 Boost.Phoenix 函数作为处理程序并让它发出信号。我不知道 Boost.Asio 内置任何东西来提高 boost::signal。