Headless server: Add support for setting a port from commandline

Manual editing of a config file for setting a port is not ideal.
Solution: add a set-port command to save a port and also a
--port option to allow setting a temporary port during startup
This commit is contained in:
Felix Kauselmann
2020-08-28 08:27:22 +02:00
parent fef734d132
commit 4a654c38c0
4 changed files with 54 additions and 27 deletions

View File

@ -26,7 +26,7 @@ public:
/** Constructor */
Startup();
/** Start the server */
void start();
void start(quint16 port = 0);
/** Stop the server */
void stop();