fixed: get full json objects from the tcp stream, and parse them

This commit is contained in:
Bob 2021-09-26 23:01:15 +02:00
parent fd151cf7df
commit 0f32809b74
2 changed files with 68 additions and 9 deletions

View file

@ -20,6 +20,7 @@
#define KODICLIENT_H
#include <thread>
#include <string>
class CAmpSwitch;
@ -31,6 +32,7 @@ class CKodiClient
private:
static void SProcess(CKodiClient* kodiclient);
void Process();
void Parse(const std::string& jsonstr);
std::thread m_thread;
CAmpSwitch* m_ampswitch;