mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 03:53:56 -07:00
made server threading optional
This commit is contained in:
parent
c67bc65762
commit
a4097659d3
4 changed files with 18 additions and 12 deletions
|
|
@ -36,9 +36,10 @@ class Servatrice_TcpServer : public QTcpServer {
|
|||
Q_OBJECT
|
||||
private:
|
||||
Servatrice *server;
|
||||
bool threaded;
|
||||
public:
|
||||
Servatrice_TcpServer(Servatrice *_server, QObject *parent = 0)
|
||||
: QTcpServer(parent), server(_server) { }
|
||||
Servatrice_TcpServer(Servatrice *_server, bool _threaded, QObject *parent = 0)
|
||||
: QTcpServer(parent), server(_server), threaded(_threaded) { }
|
||||
protected:
|
||||
void incomingConnection(int socketDescriptor);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue