mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 08:26:16 +02:00
handle Json RPC Batches
This commit is contained in:
parent
49c176dcab
commit
c84c64dd15
2 changed files with 90 additions and 46 deletions
|
@ -99,7 +99,7 @@ private:
|
|||
void handleAccept(socket_ptr socket);
|
||||
session_ptr getStreamSession(const std::string& mac) const;
|
||||
session_ptr getStreamSession(StreamSession* session) const;
|
||||
void ProcessJson(const std::string& json, jsonrpcpp::entity_ptr& response, jsonrpcpp::notification_ptr& notification) const;
|
||||
void ProcessRequest(const jsonrpcpp::request_ptr request, jsonrpcpp::entity_ptr& response, jsonrpcpp::notification_ptr& notification) const;
|
||||
mutable std::recursive_mutex sessionsMutex_;
|
||||
std::set<session_ptr> sessions_;
|
||||
asio::io_service* io_service_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue