mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +02:00
Rename MessageReceiver to StreamMessageReceiver
This commit is contained in:
parent
d52015ff09
commit
af93719490
16 changed files with 37 additions and 40 deletions
|
@ -53,11 +53,6 @@ public:
|
|||
/// Send a message to all connected clients
|
||||
void send(const std::string& message, const ControlSession* excludeSession = nullptr);
|
||||
|
||||
/// Clients call this when they receive a message. Implementation of MessageReceiver::onMessageReceived
|
||||
std::string onMessageReceived(ControlSession* session, const std::string& message) override;
|
||||
void onNewSession(const std::shared_ptr<ControlSession>& session) override;
|
||||
void onNewSession(const std::shared_ptr<StreamSession>& session) override;
|
||||
|
||||
private:
|
||||
void startAccept();
|
||||
|
||||
|
@ -65,6 +60,11 @@ private:
|
|||
void handleAccept(tcp::socket socket, Args&&... args);
|
||||
void cleanup();
|
||||
|
||||
/// Implementation of ControlMessageReceiver
|
||||
std::string onMessageReceived(ControlSession* session, const std::string& message) override;
|
||||
void onNewSession(const std::shared_ptr<ControlSession>& session) override;
|
||||
void onNewSession(const std::shared_ptr<StreamSession>& session) override;
|
||||
|
||||
mutable std::recursive_mutex session_mutex_;
|
||||
std::vector<std::weak_ptr<ControlSession>> sessions_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue