From f44c6365c0c53107e4e4dc7036466209341b15d3 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Thu, 23 Apr 2020 12:40:52 -0500 Subject: [PATCH] Run client from main --- NetworkProtocol.h | 2 ++ main.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NetworkProtocol.h b/NetworkProtocol.h index 802d75f31..5ff19dfea 100644 --- a/NetworkProtocol.h +++ b/NetworkProtocol.h @@ -1,3 +1,5 @@ +#pragma once + typedef struct NetPacketHeader { char pkt_magic[4]; /* Magic value "ORGB" identifies beginning of packet */ diff --git a/main.cpp b/main.cpp index 09530ba2a..eeac5617d 100644 --- a/main.cpp +++ b/main.cpp @@ -6,6 +6,7 @@ * * \******************************************************************************************/ +#include "NetworkClient.h" #include "NetworkServer.h" #include "OpenRGB.h" #include "ProfileManager.h" @@ -46,6 +47,7 @@ int main(int argc, char* argv[]) } NetworkServer server(rgb_controllers); + NetworkClient client(rgb_controllers); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication a(argc, argv);