|
Boost Users : |
Subject: [Boost-users] ת·¢: How to detatch native socket from boost asio basic_socket?
From: BlueStone (bluestn_at_[hidden])
Date: 2010-02-19 09:57:04
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net