mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-22 13:36:18 +02:00
Remove PosixStream layer
This commit is contained in:
parent
86cd4b2b63
commit
275a53a845
21 changed files with 201 additions and 162 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2021 Johannes Pohl
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -68,7 +68,7 @@ TcpStream::TcpStream(PcmStream::Listener* pcmListener, boost::asio::io_context&
|
|||
}
|
||||
|
||||
|
||||
void TcpStream::do_connect()
|
||||
void TcpStream::connect()
|
||||
{
|
||||
if (!active_)
|
||||
return;
|
||||
|
@ -112,12 +112,13 @@ void TcpStream::do_connect()
|
|||
}
|
||||
|
||||
|
||||
void TcpStream::do_disconnect()
|
||||
void TcpStream::disconnect()
|
||||
{
|
||||
if (stream_)
|
||||
stream_->close();
|
||||
reconnect_timer_.cancel();
|
||||
if (acceptor_)
|
||||
acceptor_->cancel();
|
||||
reconnect_timer_.cancel();
|
||||
AsioStream<tcp::socket>::disconnect();
|
||||
}
|
||||
|
||||
|
||||
} // namespace streamreader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue