diff options
Diffstat (limited to 'mock-server/main.cpp')
| -rw-r--r-- | mock-server/main.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/mock-server/main.cpp b/mock-server/main.cpp deleted file mode 100644 index 9a55463..0000000 --- a/mock-server/main.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @file main.cpp - * @brief Mock XPL2 server on three protocol ports. - */ -#include "MockServer.h" - -#include <QCommandLineParser> -#include <QCoreApplication> - -int -main (int argc, char *argv[]) -{ - qSetMessagePattern ("MockServer [%{time HH:mm:ss.zzz}] %{message}"); - - QCoreApplication app (argc, argv); - - QCommandLineParser parser; - parser.addOption ({ "wire-debug", "Log raw wire TX/RX to dev log" }); - parser.addOption ({ "host", "Target host to connect to (default 127.0.0.1)", - "address", "127.0.0.1" }); - parser.addHelpOption (); - parser.process (app); - - if (parser.isSet ("wire-debug")) - MockServer::enableWireDebug (); - - new MockServer (parser.value ("host"), &app); - - return app.exec (); -} |
