Client will now close listener thread when disconnected and attempt to reconnect. Initialization behavior (controller requests, client string update) are performed automatically upon reconnection

This commit is contained in:
Adam Honse 2020-05-10 01:19:33 -05:00
parent 5133c30242
commit e2c2b8c1df
4 changed files with 205 additions and 93 deletions

View file

@ -71,12 +71,13 @@ public:
void tcp_close();
bool connected;
SOCKET sock;
private:
#ifdef WIN32
WSADATA wsa;
#endif
SOCKET sock;
std::vector<SOCKET *> clients;
sockaddr addrDest;