Find a random port number to use for the application server to avoid conflicts

with any other apps that may have already bound to the default port used by CP.
This commit is contained in:
Dave Page
2013-10-04 17:12:10 +01:00
parent a1524f3726
commit 457a842cec
7 changed files with 64 additions and 38 deletions

View File

@@ -23,7 +23,7 @@ class Server : public QThread
Q_OBJECT
public:
Server();
Server(quint16 port);
~Server();
bool Init();
@@ -37,6 +37,8 @@ private:
QString m_appfile;
QString m_error;
quint16 m_port;
};
#endif // SERVER_H