Get network client working on Windows
This commit is contained in:
parent
25f7a87a79
commit
d716973642
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue