server: base server code.
This commit is contained in:
17
Server/main.cpp
Normal file
17
Server/main.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user