asio - how to reuse existing socket descriptor?

I am porting Win32 C++ application to use boost asio library. In this application I have a client socket that is returned to me from the call to 3-rd party library. Then I am getting data from the connection using WSAAsyncSelect, where the first parameter is the socket handle. My question: Is there any way to use asio library to read data from already established connection where I know the client socket handle? I cannot initiate connection myself, it is only done through 3-rd party library, I only know client socket descriptor. Any help/comments will be greatly appreciated.

My question: Is there any way to use asio library to read data from already established connection where I know the client socket handle?
Yes. http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/basic_str...
participants (2)
-
Igor R
-
QPlace