Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qabstractsocket.cpp File Reference
#include <QtNetwork/private/qtnetworkglobal_p.h>
#include "qabstractsocket.h"
#include "qabstractsocket_p.h"
#include "private/qhostinfo_p.h"
#include <qabstracteventdispatcher.h>
#include <qhostaddress.h>
#include <qhostinfo.h>
#include <qmetaobject.h>
#include <qpointer.h>
#include <qtimer.h>
#include <qelapsedtimer.h>
#include <qscopedvaluerollback.h>
#include <qvarlengtharray.h>
#include <private/qthread_p.h>
#include <time.h>
#include "moc_qabstractsocket.cpp"
+ Include dependency graph for qabstractsocket.cpp:

Go to the source code of this file.

Macros

#define Q_CHECK_SOCKETENGINE(returnValue)
 
#define QABSTRACTSOCKET_BUFFERSIZE   32768
 
#define QT_TRANSFER_TIMEOUT   120000
 

Functions

static bool isProxyError (QAbstractSocket::SocketError error)
 
Q_NETWORK_EXPORT QDebug operator<< (QDebug debug, QAbstractSocket::SocketError error)
 
Q_NETWORK_EXPORT QDebug operator<< (QDebug debug, QAbstractSocket::SocketState state)
 

Variables

static const int DefaultConnectTimeout = 30000
 

Macro Definition Documentation

◆ Q_CHECK_SOCKETENGINE

#define Q_CHECK_SOCKETENGINE (   returnValue)
Value:
do { \
if (!d->socketEngine) { \
return returnValue; \
} } while (0)

Definition at line 455 of file qabstractsocket.cpp.

◆ QABSTRACTSOCKET_BUFFERSIZE

#define QABSTRACTSOCKET_BUFFERSIZE   32768

Definition at line 461 of file qabstractsocket.cpp.

◆ QT_TRANSFER_TIMEOUT

#define QT_TRANSFER_TIMEOUT   120000

Definition at line 463 of file qabstractsocket.cpp.

Function Documentation

◆ isProxyError()

static bool isProxyError ( QAbstractSocket::SocketError  error)
static

Definition at line 474 of file qabstractsocket.cpp.

References error, QAbstractSocket::ProxyAuthenticationRequiredError, QAbstractSocket::ProxyConnectionClosedError, QAbstractSocket::ProxyConnectionRefusedError, QAbstractSocket::ProxyConnectionTimeoutError, QAbstractSocket::ProxyNotFoundError, and QAbstractSocket::ProxyProtocolError.

Referenced by QAbstractSocketPrivate::_q_testConnection().

+ Here is the caller graph for this function:

◆ operator<<() [1/2]

◆ operator<<() [2/2]

Variable Documentation

◆ DefaultConnectTimeout

const int DefaultConnectTimeout = 30000
static