Is it possible to detach a native socket from Boost.ASIO\'s socket class? If so, how can it be done? I can\'t seem to find anything obvious in the documentation.
Windows has a WSADuplicateSocket function, which can be used to duplicate the native socket. The underlying socket will remain open until all descriptors for this socket are deallocated.