mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-13 06:37:42 +02:00
Pass complete Settings struct around
This commit is contained in:
parent
964801896a
commit
c112058998
18 changed files with 584 additions and 140 deletions
|
@ -43,7 +43,7 @@ class ControlSessionTcp : public ControlSession
|
|||
{
|
||||
public:
|
||||
/// ctor. Received message from the client are passed to ControlMessageReceiver
|
||||
ControlSessionTcp(ControlMessageReceiver* receiver, tcp::socket&& socket);
|
||||
ControlSessionTcp(ControlMessageReceiver* receiver, tcp::socket&& socket, const ServerSettings& settings);
|
||||
~ControlSessionTcp() override;
|
||||
void start() override;
|
||||
void stop() override;
|
||||
|
@ -51,7 +51,7 @@ public:
|
|||
/// Sends a message to the client (asynchronous)
|
||||
void sendAsync(const std::string& message) override;
|
||||
|
||||
protected:
|
||||
private:
|
||||
void do_read();
|
||||
void send_next();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue