Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSslServerPrivate Class Reference

#include <qsslserver_p.h>

+ Inheritance diagram for QSslServerPrivate:
+ Collaboration diagram for QSslServerPrivate:

Classes

struct  SocketData
 

Public Member Functions

 QSslServerPrivate ()
 
void checkClientHelloAndContinue ()
 
void initializeHandshakeProcess (QSslSocket *socket)
 
void removeSocketData (quintptr socket)
 
void handleHandshakeTimedOut (QSslSocket *socket)
 
int totalPendingConnections () const override
 
- Public Member Functions inherited from QTcpServerPrivate
 QTcpServerPrivate ()
 
 ~QTcpServerPrivate ()
 
QNetworkProxy resolveProxy (const QHostAddress &address, quint16 port)
 
virtual void configureCreatedSocket ()
 
void readNotification () override
 
void closeNotification () override
 
void writeNotification () override
 
void exceptionNotification () override
 
void connectionNotification () override
 
void proxyAuthenticationRequired (const QNetworkProxy &, QAuthenticator *) override
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 
- Public Member Functions inherited from QAbstractSocketEngineReceiver
virtual ~QAbstractSocketEngineReceiver ()
 

Public Attributes

QHash< quintptr, SocketDatasocketData
 
QSslConfiguration sslConfiguration
 
int handshakeTimeout = DefaultHandshakeTimeout
 
- Public Attributes inherited from QTcpServerPrivate
QList< QTcpSocket * > pendingConnections
 
quint16 port
 
QHostAddress address
 
QAbstractSocket::SocketType socketType
 
QAbstractSocket::SocketState state
 
QAbstractSocketEnginesocketEngine
 
QAbstractSocket::SocketError serverSocketError
 
QString serverSocketErrorString
 
int listenBacklog = 50
 
int maxConnections
 
QNetworkProxy proxy
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Detailed Description

Definition at line 30 of file qsslserver_p.h.

Constructor & Destructor Documentation

◆ QSslServerPrivate()

QT_BEGIN_NAMESPACE QSslServerPrivate::QSslServerPrivate ( )

Definition at line 192 of file qsslserver.cpp.

Member Function Documentation

◆ checkClientHelloAndContinue()

void QSslServerPrivate::checkClientHelloAndContinue ( )

Definition at line 366 of file qsslserver.cpp.

References QAbstractSocket::bytesAvailable(), QObject::deleteLater(), QObject::disconnect(), QAbstractSocket::disconnectFromHost(), it, QIODevice::peek(), Q_EMIT, Q_UNLIKELY, socket, and socketData.

Referenced by initializeHandshakeProcess().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleHandshakeTimedOut()

void QSslServerPrivate::handleHandshakeTimedOut ( QSslSocket * socket)

Definition at line 399 of file qsslserver.cpp.

References QObject::deleteLater(), QAbstractSocket::disconnectFromHost(), QAbstractSocketEngine::isReadNotificationEnabled(), QTcpServerPrivate::maxConnections, Q_EMIT, removeSocketData(), socket, QTcpServerPrivate::socketEngine, QAbstractSocket::SocketTimeoutError, and totalPendingConnections().

Referenced by initializeHandshakeProcess().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initializeHandshakeProcess()

void QSslServerPrivate::initializeHandshakeProcess ( QSslSocket * socket)

Definition at line 330 of file qsslserver.cpp.

References checkClientHelloAndContinue(), QObject::connect(), QObject::destroyed(), handleHandshakeTimedOut(), handshakeTimeout, it, QIODevice::readyRead(), removeSocketData(), socket, and socketData.

+ Here is the call graph for this function:

◆ removeSocketData()

void QSslServerPrivate::removeSocketData ( quintptr socket)

Definition at line 351 of file qsslserver.cpp.

References it, socket, and socketData.

Referenced by handleHandshakeTimedOut(), and initializeHandshakeProcess().

+ Here is the caller graph for this function:

◆ totalPendingConnections()

int QSslServerPrivate::totalPendingConnections ( ) const
overridevirtual

Return the amount of sockets currently in queue for the server. This is to make maxPendingConnections work properly with servers that don't necessarily have 'ready-to-go' sockets as soon as they connect, e.g. QSslServer. By default we just return pendingConnections.size(), which is equivalent to what it did before.

Reimplemented from QTcpServerPrivate.

Definition at line 360 of file qsslserver.cpp.

References socketData, and QTcpServerPrivate::totalPendingConnections().

Referenced by handleHandshakeTimedOut().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ handshakeTimeout

int QSslServerPrivate::handshakeTimeout = DefaultHandshakeTimeout

Definition at line 65 of file qsslserver_p.h.

Referenced by initializeHandshakeProcess().

◆ socketData

◆ sslConfiguration

QSslConfiguration QSslServerPrivate::sslConfiguration

Definition at line 64 of file qsslserver_p.h.


The documentation for this class was generated from the following files: