Rename experimental.tcp to tcp

This commit is contained in:
badaix 2019-11-28 22:31:03 +01:00
parent fd616956cb
commit 3cb9902bbe
4 changed files with 14 additions and 2 deletions

View file

@ -64,6 +64,9 @@ TcpStream::TcpStream(PcmListener* pcmListener, boost::asio::io_context& ioc, con
void TcpStream::connect()
{
if (!active_)
return;
auto self = shared_from_this();
if (is_server_)
@ -109,4 +112,7 @@ void TcpStream::disconnect()
{
if (stream_)
stream_->close();
if (acceptor_)
acceptor_->cancel();
reconnect_timer_.cancel();
}