handle Json RPC Batches

This commit is contained in:
badaix 2017-02-05 16:32:32 +01:00
parent 49c176dcab
commit c84c64dd15
2 changed files with 90 additions and 46 deletions

View file

@ -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_;