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.