Check for local server before detecting devices from hardware and tweak timeouts to make network connections faster

This commit is contained in:
Adam Honse 2020-06-27 17:32:01 -05:00
parent 4c6429ae76
commit 96af869d79
4 changed files with 51 additions and 16 deletions

View file

@ -24,6 +24,7 @@ public:
void ClientInfoChanged();
bool GetConnected();
const char * GetIP();
unsigned short GetPort();
bool GetOnline();
@ -71,6 +72,7 @@ private:
char port_ip[20];
unsigned short port_num;
bool client_active;
bool controller_data_received;
bool server_connected;
bool server_initialized;
unsigned int server_controller_count;