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
QTcpServerPrivate Class Reference

#include <qtcpserver_p.h>

+ Inheritance diagram for QTcpServerPrivate:
+ Collaboration diagram for QTcpServerPrivate:

Public Member Functions

 QTcpServerPrivate ()
 
 ~QTcpServerPrivate ()
 
QNetworkProxy resolveProxy (const QHostAddress &address, quint16 port)
 
virtual void configureCreatedSocket ()
 
virtual int totalPendingConnections () const
 
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

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 qtcpserver_p.h.

Constructor & Destructor Documentation

◆ QTcpServerPrivate()

QTcpServerPrivate::QTcpServerPrivate ( )

Definition at line 96 of file qtcpserver.cpp.

◆ ~QTcpServerPrivate()

QTcpServerPrivate::~QTcpServerPrivate ( )

Definition at line 108 of file qtcpserver.cpp.

Member Function Documentation

◆ closeNotification()

void QTcpServerPrivate::closeNotification ( )
inlineoverridevirtual

Implements QAbstractSocketEngineReceiver.

Definition at line 63 of file qtcpserver_p.h.

◆ configureCreatedSocket()

void QTcpServerPrivate::configureCreatedSocket ( )
virtual

Reimplemented in QSctpServerPrivate.

Definition at line 154 of file qtcpserver.cpp.

References QAbstractSocketEngine::AddressReusable, QAbstractSocketEngine::setOption(), and socketEngine.

Referenced by QSctpServerPrivate::configureCreatedSocket().

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

◆ connectionNotification()

void QTcpServerPrivate::connectionNotification ( )
inlineoverridevirtual

Implements QAbstractSocketEngineReceiver.

Definition at line 66 of file qtcpserver_p.h.

◆ exceptionNotification()

void QTcpServerPrivate::exceptionNotification ( )
inlineoverridevirtual

Implements QAbstractSocketEngineReceiver.

Definition at line 65 of file qtcpserver_p.h.

◆ proxyAuthenticationRequired()

void QTcpServerPrivate::proxyAuthenticationRequired ( const QNetworkProxy & ,
QAuthenticator *  )
inlineoverridevirtual

Implements QAbstractSocketEngineReceiver.

Definition at line 68 of file qtcpserver_p.h.

◆ readNotification()

void QTcpServerPrivate::readNotification ( )
overridevirtual

◆ resolveProxy()

QNetworkProxy QTcpServerPrivate::resolveProxy ( const QHostAddress & address,
quint16 port )

Resolve the proxy to its final value.

Definition at line 117 of file qtcpserver.cpp.

References QNetworkProxy::DefaultProxy, QNetworkProxy::ListeningCapability, QNetworkProxy::NoProxy, proxy, QNetworkProxyFactory::proxyForQuery(), QNetworkProxy::SctpListeningCapability, QNetworkProxyQuery::SctpServer, QAbstractSocket::SctpSocket, socketType, QNetworkProxyQuery::TcpServer, QAbstractSocket::TcpSocket, and QNetworkProxy::type().

+ Here is the call graph for this function:

◆ totalPendingConnections()

int QTcpServerPrivate::totalPendingConnections ( ) const
virtual

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 in QSslServerPrivate.

Definition at line 217 of file qtcpserver.cpp.

References pendingConnections, and QList< T >::size().

Referenced by readNotification(), and QSslServerPrivate::totalPendingConnections().

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

◆ writeNotification()

void QTcpServerPrivate::writeNotification ( )
inlineoverridevirtual

Implements QAbstractSocketEngineReceiver.

Definition at line 64 of file qtcpserver_p.h.

Member Data Documentation

◆ address

QHostAddress QTcpServerPrivate::address

Definition at line 41 of file qtcpserver_p.h.

◆ listenBacklog

int QTcpServerPrivate::listenBacklog = 50

Definition at line 50 of file qtcpserver_p.h.

◆ maxConnections

int QTcpServerPrivate::maxConnections

Definition at line 51 of file qtcpserver_p.h.

Referenced by QSslServerPrivate::handleHandshakeTimedOut(), and readNotification().

◆ pendingConnections

QList<QTcpSocket *> QTcpServerPrivate::pendingConnections

Definition at line 38 of file qtcpserver_p.h.

Referenced by totalPendingConnections().

◆ port

quint16 QTcpServerPrivate::port

Definition at line 40 of file qtcpserver_p.h.

◆ proxy

QNetworkProxy QTcpServerPrivate::proxy

Definition at line 54 of file qtcpserver_p.h.

Referenced by resolveProxy().

◆ serverSocketError

QAbstractSocket::SocketError QTcpServerPrivate::serverSocketError

Definition at line 47 of file qtcpserver_p.h.

Referenced by readNotification().

◆ serverSocketErrorString

QString QTcpServerPrivate::serverSocketErrorString

Definition at line 48 of file qtcpserver_p.h.

Referenced by readNotification().

◆ socketEngine

◆ socketType

QAbstractSocket::SocketType QTcpServerPrivate::socketType

Definition at line 43 of file qtcpserver_p.h.

Referenced by resolveProxy().

◆ state

QAbstractSocket::SocketState QTcpServerPrivate::state

Definition at line 44 of file qtcpserver_p.h.


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