X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fnetworkconnection.h;h=16bfccc4223e92c919960784e80713907ad1cd32;hb=2dc003e929312add334ccb4d48b453d942d89b7b;hp=9b4126d02c108d59c67170e71097a0e8a1fe2729;hpb=2f515f5ea173837eae501292c45af69793da6d60;p=quassel.git diff --git a/src/core/networkconnection.h b/src/core/networkconnection.h index 9b4126d0..16bfccc4 100644 --- a/src/core/networkconnection.h +++ b/src/core/networkconnection.h @@ -130,6 +130,7 @@ private slots: void socketError(QAbstractSocket::SocketError); void socketConnected(); void socketInitialized(); + void socketCloseTimeout(); void socketDisconnected(); void socketStateChanged(QAbstractSocket::SocketState); void setConnectionState(Network::ConnectionState); @@ -169,8 +170,13 @@ private: QHash _channelKeys; // stores persistent channels and their passwords, if any QTimer _autoReconnectTimer; + int _autoReconnectCount; + QTimer _socketCloseTimer; + + bool _quitRequested; + bool _previousConnectionAttemptFailed; int _lastUsedServerlistIndex; @@ -188,6 +194,8 @@ private: int _tokenBucket; // the virtual bucket that holds the tokens QList _msgQueue; + int _maxMsgSize; + void writeToSocket(QByteArray s);