made server threaded, fixing issue #51

This commit is contained in:
Max-Wilhelm Bruker 2012-05-28 18:51:58 +02:00
parent b328c1ed4d
commit 520300dc86
14 changed files with 108 additions and 37 deletions

View file

@ -93,7 +93,7 @@ private:
Response::ResponseCode processExtendedModeratorCommand(int cmdType, const ModeratorCommand &cmd, ResponseContainer &rc);
Response::ResponseCode processExtendedAdminCommand(int cmdType, const AdminCommand &cmd, ResponseContainer &rc);
public:
ServerSocketInterface(Servatrice *_server, Servatrice_DatabaseInterface *_databaseInterface, QTcpSocket *_socket, QObject *parent = 0);
ServerSocketInterface(Servatrice *_server, Servatrice_DatabaseInterface *_databaseInterface, QObject *parent = 0);
~ServerSocketInterface();
void initSessionDeprecated();
bool initSession();
@ -101,6 +101,8 @@ public:
QString getAddress() const { return socket->peerAddress().toString(); }
void transmitProtocolItem(const ServerMessage &item);
public slots:
void initConnection(int socketDescriptor);
};
#endif