Qt 4.8
Classes | Macros | Functions
qsslsocket.cpp File Reference
#include "qsslcipher.h"
#include "qsslsocket.h"
#include "qsslsocket_openssl_p.h"
#include "qsslconfiguration_p.h"
#include <QtCore/qdebug.h>
#include <QtCore/qdir.h>
#include <QtCore/qmutex.h>
#include <QtCore/qelapsedtimer.h>
#include <QtNetwork/qhostaddress.h>
#include <QtNetwork/qhostinfo.h>
#include "moc_qsslsocket.cpp"

Go to the source code of this file.

Classes

class  QSslSocketGlobalData
 

Macros

#define d   d_ptr
 

Functions

static int qt_timeout_value (int msecs, int elapsed)
 

Macro Definition Documentation

◆ d

#define d   d_ptr

Definition at line 2400 of file qsslsocket.cpp.

Referenced by QSslSocket::abort(), QSslSocket::addCaCertificate(), QSslSocket::addCaCertificates(), QSslSocket::atEnd(), QSslSocket::bytesAvailable(), QSslSocket::bytesToWrite(), QSslSocket::caCertificates(), QSslSocket::canReadLine(), QSslSocket::ciphers(), QSslSocket::close(), QSslSocket::connectToHostEncrypted(), QSslSocket::connectToHostImplementation(), QSslSocket::disconnectFromHostImplementation(), QSslSocket::encryptedBytesAvailable(), QSslSocket::encryptedBytesToWrite(), QSslSocket::flush(), QSslSocket::ignoreSslErrors(), QSslSocket::isEncrypted(), QSslSocket::localCertificate(), QSslSocket::mode(), QSslSocket::peerCertificate(), QSslSocket::peerCertificateChain(), QSslSocket::peerVerifyDepth(), QSslSocket::peerVerifyMode(), QSslSocket::peerVerifyName(), QSslSocket::privateKey(), QSslSocket::protocol(), QSslSocket::QSslSocket(), QSslSocket::readData(), QSslSocket::sessionCipher(), QSslSocket::setCaCertificates(), QSslSocket::setCiphers(), QSslSocket::setLocalCertificate(), QSslSocket::setPeerVerifyDepth(), QSslSocket::setPeerVerifyMode(), QSslSocket::setPeerVerifyName(), QSslSocket::setPrivateKey(), QSslSocket::setProtocol(), QSslSocket::setReadBufferSize(), QSslSocket::setSocketDescriptor(), QSslSocket::setSocketOption(), QSslSocket::setSslConfiguration(), QSslSocket::socketOption(), QSslSocket::sslConfiguration(), QSslSocket::sslErrors(), QSslSocket::startClientEncryption(), QSslSocket::startServerEncryption(), QSslSocket::waitForBytesWritten(), QSslSocket::waitForConnected(), QSslSocket::waitForDisconnected(), QSslSocket::waitForEncrypted(), QSslSocket::waitForReadyRead(), QSslSocket::writeData(), and QSslSocket::~QSslSocket().

Function Documentation

◆ qt_timeout_value()

static int qt_timeout_value ( int  msecs,
int  elapsed 
)
static

Definition at line 325 of file qsslsocket.cpp.

Referenced by QSslSocket::waitForBytesWritten(), QSslSocket::waitForDisconnected(), QSslSocket::waitForEncrypted(), and QSslSocket::waitForReadyRead().

326 {
327  if (msecs == -1)
328  return -1;
329 
330  int timeout = msecs - elapsed;
331  return timeout < 0 ? 0 : timeout;
332 }
static double elapsed(qint64 after, qint64 before)