Boost logo

Boost Users :

Subject: [Boost-users] asio - how to reuse existing socket descriptor?
From: QPlace (quiteplace_at_[hidden])
Date: 2008-12-09 11:44:42


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.


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