added buffer macro

This commit is contained in:
liranbg 2014-10-09 21:17:51 +03:00
parent a3995acb0d
commit 0246b8bcef
2 changed files with 2 additions and 1 deletions

View file

@ -258,7 +258,7 @@ void jceSSLClient::setDisconnected()
void jceSSLClient::setEncrypted() void jceSSLClient::setEncrypted()
{ {
qDebug() << Q_FUNC_INFO << "connection has been ENCRYPTED"; qDebug() << Q_FUNC_INFO << "connection has been ENCRYPTED";
setReadBufferSize(10000); setReadBufferSize(packetSize);
setSocketOption(QAbstractSocket::KeepAliveOption,true); setSocketOption(QAbstractSocket::KeepAliveOption,true);
flag = true; flag = true;
if (!isConnected()) if (!isConnected())

View file

@ -11,6 +11,7 @@
#include <QTimer> #include <QTimer>
#include <QProgressBar> #include <QProgressBar>
#define packetSize 10000
#define milisTimeOut 4000 #define milisTimeOut 4000
class jceSSLClient : public QSslSocket class jceSSLClient : public QSslSocket