Client now requests list of all controllers from server and adds them to the master list
This commit is contained in:
parent
68fa3c2def
commit
e2dfcd5b0f
2 changed files with 81 additions and 25 deletions
|
|
@ -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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue