Get network client working on Windows

This commit is contained in:
Adam Honse 2020-04-27 10:24:41 -05:00
parent 25f7a87a79
commit d716973642

View file

@ -49,6 +49,7 @@ NetworkClient::NetworkClient(std::vector<RGBController *>& control) : controller
//Start the connection thread
#ifdef WIN32
_beginthread(connection_thread, 0, this);
_beginthread(listen_thread, 0, this);
#else
pthread_t thread;
pthread_create(&thread, NULL, &connection_thread, this);
@ -371,4 +372,4 @@ void NetworkClient::SendRequest_RGBController_UpdateMode(unsigned int dev_idx, u
port.tcp_client_write((char *)&reply_hdr, sizeof(NetPacketHeader));
port.tcp_client_write((char *)data, size);
}
}