From 0246b8bcef2e16179af269150427d205c814f425 Mon Sep 17 00:00:00 2001 From: liranbg Date: Thu, 9 Oct 2014 21:17:51 +0300 Subject: [PATCH] added buffer macro --- src/jceConnection/jcesslclient.cpp | 2 +- src/jceConnection/jcesslclient.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jceConnection/jcesslclient.cpp b/src/jceConnection/jcesslclient.cpp index c293eee..bd25409 100644 --- a/src/jceConnection/jcesslclient.cpp +++ b/src/jceConnection/jcesslclient.cpp @@ -258,7 +258,7 @@ void jceSSLClient::setDisconnected() void jceSSLClient::setEncrypted() { qDebug() << Q_FUNC_INFO << "connection has been ENCRYPTED"; - setReadBufferSize(10000); + setReadBufferSize(packetSize); setSocketOption(QAbstractSocket::KeepAliveOption,true); flag = true; if (!isConnected()) diff --git a/src/jceConnection/jcesslclient.h b/src/jceConnection/jcesslclient.h index a6edbed..1b2cec6 100644 --- a/src/jceConnection/jcesslclient.h +++ b/src/jceConnection/jcesslclient.h @@ -11,6 +11,7 @@ #include #include +#define packetSize 10000 #define milisTimeOut 4000 class jceSSLClient : public QSslSocket