added buffer macro
This commit is contained in:
parent
a3995acb0d
commit
0246b8bcef
2 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue