转发: How to detatch native socket from boost asio basic_socket?
19 Feb
2010
19 Feb
'10
2:57 p.m.
Hey! In my scenario, first, I use ip::tcp::acceptor to accept an incoming connection request, and got the basic_socket instance, then I read some data from it, and after checking validity of the data received, I need to create another class to manage i/o operation with this basic_socket instance. And at this point, in my opinion, I must detach native socket from the previous instance of basic_socket, and assign it to the new one, but I cannot find that asio provide the method to detach native socket from the basic_socket. How can I do ? Any advice will be appreciated.
5396
Age (days ago)
5396
Last active (days ago)
0 comments
1 participants
participants (1)
-
BlueStone