52 typedef std::shared_ptr<KurentoConnection>
ptr;
64 std::string
sendRequest(std::shared_ptr<KurentoResponseHandler>
krh,
const std::string& method,
const json::Object& params);
66 void registerObject(std::shared_ptr<KurentoResponseHandler>
object);
71 void processSendQueue();
72 void sendMessage(
const std::string& msg);
74 void onResponse(
const std::string&
id, std::shared_ptr<KurentoResponseHandler>
krh,
const json::Object& message);
75 void onEvent(
const std::string&
eventName,
const json::Object& message);
80 websocketpp::connection_hdl mHandle;
81 std::chrono::milliseconds mTimeout;
82 std::chrono::milliseconds mRetryInterval;
83 bool mWaitForResponse;
85 unsigned long mNextId = 1;
86 unsigned long mLastResponse = 0;
87 unsigned long mRequestSentCount = 0;
88 unsigned long mResponseReceivedCount = 0;
89 std::string mSessionId;
90 std::deque<std::string> mSendQueue;
91 typedef std::map<std::string, std::shared_ptr<KurentoResponseHandler> > KurentoResponseHandlerMap;
92 KurentoResponseHandlerMap mResponseHandlers;
94 typedef std::map<std::string, std::shared_ptr<Object> > KurentoObjectMap;
95 KurentoObjectMap mObjects;