mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
* fix #3225 * Servatrice: use websockets as an optional component (for qt < 5.3) * Attempt++
This commit is contained in:
parent
73fb9ee03e
commit
c06fc562a1
9 changed files with 72 additions and 152 deletions
|
|
@ -104,7 +104,7 @@ Servatrice_ConnectionPool *Servatrice_GameServer::findLeastUsedConnectionPool()
|
|||
return connectionPools[poolIndex];
|
||||
}
|
||||
|
||||
#if QT_VERSION > 0x050300
|
||||
#ifdef QT_WEBSOCKETS_LIB
|
||||
#define WEBSOCKET_POOL_NUMBER 999
|
||||
|
||||
Servatrice_WebsocketGameServer::Servatrice_WebsocketGameServer(Servatrice *_server,
|
||||
|
|
@ -430,7 +430,7 @@ bool Servatrice::initServer()
|
|||
}
|
||||
}
|
||||
|
||||
#if QT_VERSION > 0x050300
|
||||
#ifdef QT_WEBSOCKETS_LIB
|
||||
// WEBSOCKET SERVER
|
||||
if (getNumberOfWebSocketPools() > 0) {
|
||||
websocketGameServer = new Servatrice_WebsocketGameServer(this, getNumberOfWebSocketPools(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue