fixed: get full json objects from the tcp stream, and parse them
This commit is contained in:
parent
fd151cf7df
commit
0f32809b74
2 changed files with 68 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue