Closed ovanes closed 5 years ago
It happens that connections can be dropped. Given that there is a basic demand to reconnect. There are two options for this:
Connection::reconnect()
Connection
asio::basic_stream_socket
I misread the source code. There is a member function
inline NextLayer &next_layer() { return stream_; }
which allows to move-assign a new socket. Closing the issue.
It happens that connections can be dropped. Given that there is a basic demand to reconnect. There are two options for this:
Connection::reconnect()
Connection
can get a new socket assigned. And the caller is responsible to establish the connection.asio::basic_stream_socket
(as well as unix domain sockets) perfectly fine supports the move assignment: https://www.boost.org/doc/libs/1_69_0/doc/html/boost_asio/reference/basic_stream_socket/operator_eq_/overload1.html