2
我正在編寫多線程TCP服務器,其中基於應用程序設計,我需要爲每個線程使用io_service
多線程。Boost Asio將接受的套接字從一個io_service傳輸到另一個io_service
有了這種設計,我需要接受來自一個Thread/io_service
的連接進行身份驗證過程(基於應用程序邏輯),然後將接受的連接傳輸到另一個Thread/io_service
以開始從經過身份驗證的連接讀取長數據。因此問題是how transfer accepted connection from one io_service into another one
?
這是否有任何標準功能?
謝謝