mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-19 23:32:59 -04:00
Initial network files
This commit is contained in:
1 parent
01e0808e41
commit
594f66ab23
8 files changed
+225
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#include "NetworkClient.h"
|
||||
|
||||
NetworkClient::NetworkClient(std::vector<RGBController *>& control) : controllers(control)
|
||||
{
|
||||
//Start the connection thread
|
||||
}
|
||||
|
||||
void NetworkClient::ConnectionThread()
|
||||
{
|
||||
//This thread manages the connection to the server
|
||||
while(1)
|
||||
{
|
||||
//Connect to server and reconnect if the connection is lost
|
||||
}
|
||||
}
|
||||
|
||||
void NetworkClient::ListenThread()
|
||||
{
|
||||
//This thread handles messages received from the server
|
||||
while(1)
|
||||
{
|
||||
//Listen for request
|
||||
|
||||
//Request received, select functionality based on request ID
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user