Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio] How to assign raw sockets (descriptors) to boost::asio::ssl::stream ?
From: Richard Hodges (hodges.r_at_[hidden])
Date: 2018-03-17 16:08:09


http://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/reference/generic__stream_protocol/socket.html

use a generic_stream::socket. It has a constructor for adopting an FD.

On 15 March 2018 at 23:06, Dmitriy V via Boost-users <
boost-users_at_[hidden]> wrote:

> Hi guys !
>
> I have client server app written on boost::asio.
> I want to implement updating the server through `execve`.
>
> But I don't know how to assign integer socket descriptor
> (given by streamssl_.lowest_layer().native_handle())
> to newly initialized server object after the updating
> (descriptors strored/restored in shared memory ...)
>
> Any help, please !
>
> --
> the best regards
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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