server: base server code.

This commit is contained in:
2025-06-14 09:27:50 +08:00
parent ff14e30d31
commit 16572fa29c
14 changed files with 500 additions and 3 deletions

17
Server/main.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include <QCoreApplication>
#include "Server.h"
int main(int argc, char* argv[])
{
QCoreApplication app(argc, argv);
Server server;
if (!server.startServer(9009)) {
return 1;
}
qDebug() << "TCP server is running. Press Ctrl+C to exit...";
return app.exec();
}