$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.