Skip to content

Commit e30bb48

Browse files
committed
Server: refactor client handling
the intention was to move the QWebSocket to the new thread but Qt does not allow that.
1 parent 9ac78e7 commit e30bb48

File tree

7 files changed

+411
-231
lines changed

7 files changed

+411
-231
lines changed

server/CMakeLists.txt

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,28 @@ set(CMAKE_CXX_STANDARD 17)
1818
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1919

2020
if (MSVC)
21-
add_definitions(/bigobj)
22-
add_definitions(/FS)
23-
add_definitions(/arch:AVX)
21+
add_definitions(/bigobj)
22+
add_definitions(/FS)
23+
add_definitions(/arch:AVX)
2424
endif (MSVC)
2525

2626
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Widgets WebSockets REQUIRED)
2727
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Widgets WebSockets REQUIRED)
2828

2929
set(PROJECT_SOURCES
30-
source/ClientDialog/ClientDialog.cpp
31-
source/ClientHandler/ClientHandler.cpp
32-
source/Client/Client.cpp
33-
source/DLIBWorker/DLIBWorker.cpp
34-
source/UIInterface/UIInterface.cpp
35-
source/Server/Server.cpp
36-
source/SocketHandler/SocketHandler.cpp
37-
source/main.cpp
38-
source/MainWindow/MainWindow.cpp
39-
40-
source/ClientDialog/ClientDialog.ui
41-
source/MainWindow/MainWindow.ui
30+
source/Client/ClientWorker.cpp
31+
source/ClientDialog/ClientDialog.cpp
32+
source/ClientHandler/ClientHandler.cpp
33+
source/Client/Client.cpp
34+
source/DLIBWorker/DLIBWorker.cpp
35+
source/UIInterface/UIInterface.cpp
36+
source/Server/Server.cpp
37+
source/SocketHandler/SocketHandler.cpp
38+
source/main.cpp
39+
source/MainWindow/MainWindow.cpp
40+
41+
source/ClientDialog/ClientDialog.ui
42+
source/MainWindow/MainWindow.ui
4243
)
4344

4445
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)

0 commit comments

Comments
 (0)