X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcore.cpp;h=5159f93a449f3e3c52b0eec6f327844e8bc45198;hb=c7ad7451b1e899ba0de2ded9ac08359dff5cca61;hp=d6330385f4850c9af9707d590b170c807cf5500d;hpb=48151f63e7f953bf07828be39ba314095c472c74;p=quassel.git diff --git a/src/core/core.cpp b/src/core/core.cpp index d6330385..5159f93a 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -94,6 +94,7 @@ void Core::stopListening() { void Core::incomingConnection() { // TODO implement SSL + // TODO While QTcpSocket *socket = server.nextPendingConnection(); connect(socket, SIGNAL(disconnected()), this, SLOT(clientDisconnected())); connect(socket, SIGNAL(readyRead()), this, SLOT(clientHasData())); @@ -111,7 +112,7 @@ void Core::clientHasData() { try { processClientInit(socket, item); } catch(Storage::AuthError) { - qWarning() << "Authentification error!"; // FIXME + qWarning() << "Authentification error!"; // FIXME: send auth error to client socket->close(); return; } catch(Exception e) { @@ -155,6 +156,7 @@ void Core::processClientInit(QTcpSocket *socket, const QVariant &v) { QVariant reply = initSession(uid); disconnect(socket, 0, this, 0); sessions[uid]->addClient(socket); + qDebug() << "Client initialized successfully."; writeDataToDevice(socket, reply); }