Is it possible to detach a native socket from the Boost.ASIO socket class? If so, how can this be done? I can not find anything obvious in the documentation.
As a brief overview of what I'm trying to accomplish: I have a class that makes a connection and performs some negotiations using Boost.ASIO, and then passes its own Windows SOCKET to success or 0 on failure.
If I am mistaken, the native socket will be closed and released when my boost :: asio :: basic_socket is destroyed.
c ++ boost sockets boost-asio
Collin dauphinee
source share