Client now requests list of all controllers from server and adds them to the master list

This commit is contained in:
Adam Honse 2020-04-24 18:22:17 -05:00
parent 68fa3c2def
commit e2dfcd5b0f
2 changed files with 81 additions and 25 deletions

View file

@ -12,12 +12,18 @@ public:
void ConnectionThread();
void ListenThread();
void ProcessReply_ControllerCount(unsigned int data_size, char * data);
void ProcessReply_ControllerData(unsigned int data_size, char * data);
void SendRequest_ControllerCount();
void SendRequest_ControllerData(unsigned int idx);
protected:
std::vector<RGBController *>& controllers;
std::vector<RGBController *> server_controllers;
private:
net_port port;
net_port port;
bool server_connected;
unsigned int server_controller_count;
};