Commit graph

17 commits

Author SHA1 Message Date
Rudi Heitbaum
b2fd2bf9ef
use make_address from boost as from_string is deprecated (#1308)
Since boost 1.87.0 boost::asio::ip::address::from_string is no longer available

ref: c0d1cfce77

fixes:
    ../server/control_server.cpp: In member function 'void ControlServer::start()':
    ../server/control_server.cpp:164:111: error: 'from_string' is not a member of 'boost::asio::ip::address'
      164 |                                                                       tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port)));
          |                                                                                                               ^~~~~~~~~~~
    ../server/control_server.cpp:180:112: error: 'from_string' is not a member of 'boost::asio::ip::address'
      180 |                                                                        tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port)));
          |                                                                                                                ^~~~~~~~~~~
    ../server/streamreader/tcp_stream.cpp: In constructor 'streamreader::TcpStream::TcpStream(streamreader::PcmStream::Listener*, boost::asio::io_context&, const ServerSettings&, const streamreader::StreamUri&)':
    ../server/streamreader/tcp_stream.cpp:67:97: error: 'from_string' is not a member of 'boost::asio::ip::address'
       67 |         acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_));
          |                                                                                                 ^~~~~~~~~~~
    ../server/streamreader/tcp_stream.cpp: In member function 'virtual void streamreader::TcpStream::connect()':
    ../server/streamreader/tcp_stream.cpp:96:75: error: 'from_string' is not a member of 'boost::asio::ip::address'
       96 |         boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_);
          |                                                                           ^~~~~~~~~~~
    ../server/stream_server.cpp: In member function 'void StreamServer::start()':
    ../server/stream_server.cpp:234:103: error: 'from_string' is not a member of 'boost::asio::ip::address'
      234 |                                                               tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.stream.port)));
          |
2024-12-18 16:23:11 +01:00
badaix
275a53a845 Remove PosixStream layer 2024-03-13 20:27:13 +01:00
Ali Abdel-Qader
a5794e5524 Fix "unqualified call to std::move" warning
This removes the warning when using [-Wunqualified-std-cast-call].
2023-01-22 11:41:49 +01:00
badaix
e1c8250876 Reformat code 2022-12-29 19:10:38 +01:00
badaix
d326252268 Rename PcmListener to PcmStream::Listener
Reorganize include order
2021-12-12 12:19:46 +01:00
badaix
12aeb5859c Use strand executors 2021-09-18 11:11:34 +02:00
badaix
2e64d81f79 Add control_script to stream sources
New parameter "control_script", starting a script on stream start.
Parameters "--snapcast-port" and "--stream" are passed to the script
2021-05-23 12:39:47 +02:00
badaix
dec7306a84 Replace some pointers with references 2020-08-18 23:36:17 +02:00
badaix
7b268b83df Remove unused shared_from_this 2020-01-08 21:22:56 +01:00
badaix
9353c61d7b Use helper function for async_wait
PosixStream waits 100ms before reconnecting
2020-01-05 14:36:46 +01:00
badaix
6d7e25e9af Switch stream readers to use asio event loop 2020-01-03 22:40:34 +01:00
badaix
210ab80f71 Switch from deadline_timer to steady_timer 2019-12-05 23:01:18 +01:00
badaix
3cb9902bbe Rename experimental.tcp to tcp 2019-11-28 22:31:03 +01:00
badaix
fd616956cb Add client mode to TcpStream 2019-11-28 20:07:43 +01:00
badaix
a625a5d806 Fix crash in TCP stream disconnect 2019-11-27 22:58:32 +01:00
badaix
48e76ea58d Add abstract AsioStream class 2019-11-27 20:44:34 +01:00
badaix
646c7593c1 Add experimental TCP and UDP streams 2019-11-24 18:24:39 +01:00