Commit graph

37 commits

Author SHA1 Message Date
badaix
d5677b6f78 Reformat code 2025-01-09 15:06:35 +01:00
badaix
72358cd912 Fix clang-tidy issues 2024-12-26 23:00:04 +01:00
badaix
d5d4cb9e63 Rename "private_key" to "certificate_key" 2024-12-26 22:58:41 +01:00
badaix
6ada939adf Fix compilation with boost v1.87.0 2024-12-19 22:53:49 +01:00
badaix
c112058998 Pass complete Settings struct around 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
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
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
6f040d3d22 Cleanup Snapserver includes 2024-04-04 19:02:45 +02:00
badaix
c01ba2bdde Fix includes 2023-01-22 21:30:11 +01:00
badaix
e1c8250876 Reformat code 2022-12-29 19:10:38 +01:00
badaix
bdc6299523 io_context cleanups 2022-04-03 15:27:28 +02:00
badaix
4f29f000de Use namespace "boost::asio" instead of "net" 2022-01-30 22:07:13 +01:00
badaix
989eb6ec8e Reorder header includes 2022-01-30 21:45:00 +01:00
badaix
ffa742c49f Use executors with implicit strand 2021-09-11 23:12:31 +02:00
badaix
0eaee48f10 Process messages asynchronously 2021-06-10 08:55:31 +02:00
badaix
bbb47c2069 Lower log severity for inactive sessions 2021-05-23 12:42:50 +02:00
badaix
f5d4fcaf43 Tidy up 2021-02-10 18:36:40 +01:00
badaix
01ce9a60c0 Streaming clients can connect via Websockets 2020-07-11 19:39:58 +02:00
badaix
e148d74772 Move --user command line setting into config file 2020-06-07 14:21:58 +02:00
badaix
ad8332345f Remove SLOG from logging 2020-04-16 09:01:09 +02:00
badaix
8c6d703ec5 Update copyright dates 2020-01-04 01:03:48 +01:00
badaix
e9dbb6c3b6 fix crash during heavy websocket load 2019-11-15 17:45:49 +01:00
badaix
4d7f411bdc rename config.h to config.hpp 2019-11-01 18:43:03 +01:00
badaix
f045602915 fix lock order inversion 2019-10-27 12:55:37 +01:00
badaix
2f06ebed04 stream server uses async send and receive 2019-10-22 23:21:14 +02:00
badaix
0b21a5daee rename files to snake_case 2019-10-13 18:43:32 +02:00
badaix
a30f548a31 rename files to snake_case 2019-10-12 18:28:29 +02:00
badaix
484cd5e672 bind stream server to configurable interface 2019-10-12 11:26:47 +02:00
badaix
9ced0aa438 bind to configurable interface 2019-10-11 22:44:26 +02:00
badaix
12a11e12a9 fix crash in control server 2019-10-10 23:54:38 +02:00
badaix
7cb595db28 move aixlog and popl to common 2019-10-09 22:11:43 +02:00
badaix
29f685f2a3 fix Makefile 2019-10-06 15:08:51 +02:00
badaix
c2488091fe rename some files from camel to snake case 2019-10-06 14:07:47 +02:00
Renamed from server/controlServer.cpp (Browse further)