Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3900: Request for support of "release" member function or assign without ownership transfer to asio socket
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-20 00:09:03
#3900: Request for support of "release" member function or assign without
ownership transfer to asio socket
-------------------------------+----------------------------
Reporter: artyomtnk@⦠| Owner: chris_kohlhoff
Type: Feature Requests | Status: closed
Milestone: To Be Determined | Component: asio
Version: Boost 1.42.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+----------------------------
Comment (by anonymous):
Hi,
I am having the same issues described on this ticket. Here the current
code used to create an ASIO socket:
{{{
int winSockHandle (valid Winsock handle opened by a third party Windows
API)
tcp::socket *pAsioSocket = new tcp::socket(ioService, tcp::v4(),
winSockHandle);
}}}
I am trying to find documentation/examples on how to implement this new
POSIX release function before deleting the ASIO socket pAsioSocket.
Is there a simple example on how to use the posix::stream_descriptor
release() function?
Thank you
NOTE: I am still learning BOOST ASIO
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3900#comment:15> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC