Get network client working on Windows

This commit is contained in:
Adam Honse committed 2020-05-09 15:48:14 -05:00
1 parent 25f7a87a79
commit d716973642
1 file changed
+2 -1
+2 -1
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);
}
}