Commit graph

995 commits

Author SHA1 Message Date
badaix
4321a9d9d1 Add JWT class 2024-12-19 22:44:51 +01:00
badaix
97739a460e Add 'ssl_enabled' config parameter 2024-12-19 22:44:51 +01:00
badaix
c2528623cd Make key password configurable 2024-12-19 22:44:51 +01:00
badaix
153d004004 Reenable plain HTTP, change HTTPS port to 1788 2024-12-19 22:44:51 +01:00
badaix
c5bd0ed6df Clean up 2024-12-19 22:44:51 +01:00
badaix
447bbb60f7 Suppress boost warning 2024-12-19 22:44:51 +01:00
badaix
a796bb2032 Use HTTPS, support for HTTP missing 2024-12-19 22:44:51 +01:00
badaix
f7bd5e733f Setup SSL context 2024-12-19 22:44:51 +01:00
badaix
6190041e86 Fix compilation with boost v1.87.0 2024-12-19 21:36:08 +01:00
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
208066e5bb Update date 2024-08-23 10:06:51 +02:00
Marcus Weseloh
2a9369274c Autoconnect ports once after connecting to Jack server 2024-06-20 23:12:18 +02:00
Marcus Weseloh
00e407bd4b Remove obsolete code 2024-06-19 18:44:47 +02:00
Marcus Weseloh
445a7a2e7c Subtract chunk duration from initial chunk timestamp
This brings it into line with all other StreamReaders.
2024-06-19 18:44:47 +02:00
Marcus Weseloh
642612782c Enable Jack error and debug messages 2024-06-19 18:44:47 +02:00
Marcus Weseloh
10f5ac41b5 Formatting and copyright 2024-06-19 18:44:47 +02:00
Marcus Weseloh
1f6bb07dd6 Use standard timestamping for JackStream chunks 2024-06-19 18:44:47 +02:00
Marcus Weseloh
da6041dcfe Formatting 2024-06-19 18:44:47 +02:00
Marcus Weseloh
41c86e65dc Only stop PcmStream if JackStream is stopped 2024-06-19 18:44:47 +02:00
Marcus Weseloh
0f910db3fc Add my name to copyright 2024-06-19 18:44:47 +02:00
Marcus Weseloh
2f6648cc1b Disable Jack logging by default
Jack sometimes outputs a log of messages and AIXLOG is not thread-safe
at the moment, so enabling Jack logging leads to quite a few missing
log messages or messages with invalid log-level or tag.
2024-06-19 18:44:47 +02:00
Marcus Weseloh
3527c0a2eb Use lambdas instead of static funcs for Jack callbacks 2024-06-19 18:44:47 +02:00
Marcus Weseloh
2921fd69d8 Use nullptr instead of NULL 2024-06-19 18:44:47 +02:00
Marcus Weseloh
78343004dc Use c++-style for function pointer 2024-06-19 18:44:47 +02:00
Marcus Weseloh
36008b5728 Remove unused include 2024-06-19 18:44:47 +02:00
Marcus Weseloh
ba0f9f209d Cleanup Jack time adjust code
Remove unnecessary member var and rename variables
for more clarity.
2024-06-19 18:44:47 +02:00
Marcus Weseloh
03eda48d6d Remove unused members vars 2024-06-19 18:44:47 +02:00
Marcus Weseloh
d30e1a5ea3 clang-format new sources 2024-06-19 18:44:47 +02:00
Marcus Weseloh
ff67399162 Start PcmStream before connecting to Jack server
Otherwise clients will bail due to a zero-length
PCM format header.
2024-06-19 18:44:47 +02:00
Marcus Weseloh
e5ebe35f80 Add server name parameter for jack client 2024-06-19 18:44:47 +02:00
Marcus Weseloh
3fc86a823b First implementation of JackStream 2024-06-19 18:44:47 +02:00
badaix
a31238a2fb Fix opus includes 2024-06-01 12:04:18 +02:00
badaix
5650397fd9 Fix opus includes 2024-06-01 11:51:06 +02:00
badaix
810b4e1a06 Change opus include path 2024-06-01 11:37:35 +02:00
badaix
b2f8b3bef0 Add link dirs 2024-05-31 23:04:48 +02:00
badaix
25e9bafc0b Add link dirs 2024-05-31 22:58:31 +02:00
badaix
ade93202aa Add link dirs 2024-05-31 22:52:34 +02:00
badaix
9a8f29800b Add link dirs 2024-05-31 22:38:43 +02:00
badaix
362dcfdcb9 Fix opus include path 2024-05-31 21:56:00 +02:00
badaix
80b8d77462 Add soxr include dir 2024-05-31 21:47:28 +02:00
badaix
3293b4fb06 Ignore boost warning 2024-05-31 20:14:16 +02:00
badaix
6754b3a15a Ignore warning from boost::process 2024-04-24 21:05:50 +02:00
Rudi Heitbaum
5fa01b8a49 reorder ogg and vorbis library linking
if vorbis has been built to depend of ogg, when trying to
statically link, the build of snapclient and snapserver fail.

reorder the libraries, to allow off symbols in vorbis to be
resolved.
2024-04-15 09:37:10 +02:00
badaix
6f040d3d22 Cleanup Snapserver includes 2024-04-04 19:02:45 +02:00
badaix
aa82ba8397 Cleanup Snapclient includes 2024-04-03 21:50:03 +02:00
badaix
241bf4913d Fix setting HTTP host name 2024-04-02 22:24:51 +02:00
badaix
e57dc0888f Fix mixer script 2024-04-02 21:53:36 +02:00
badaix
2ea2029856 Add version check for websocket-client 2024-03-28 10:25:26 +01:00
badaix
be083d2e8e Fix librespot reconnect handling 2024-03-26 20:26:48 +01:00
badaix
6451ab5b8d Omit status updates for null streams 2024-03-26 14:30:24 +01:00