mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 00:23:55 -07:00
added send buffer to limit socket operations to one thread
This commit is contained in:
parent
81a5d58d70
commit
45890b836b
5 changed files with 40 additions and 7 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <QObject>
|
||||
#include <QStringList>
|
||||
#include <QMap>
|
||||
#include <QMutex>
|
||||
|
||||
class Server_Game;
|
||||
class Server_Room;
|
||||
|
|
@ -22,6 +23,7 @@ private slots:
|
|||
void gameClosing(int gameId);
|
||||
void broadcastRoomUpdate();
|
||||
public:
|
||||
mutable QMutex serverMutex;
|
||||
Server(QObject *parent = 0);
|
||||
~Server();
|
||||
AuthenticationResult loginUser(Server_ProtocolHandler *session, QString &name, const QString &password);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue